Documentation ¶
Index ¶
Constants ¶
View Source
const ( ButtonA = iota ButtonB ButtonSelect ButtonStart ButtonUp ButtonDown ButtonLeft ButtonRight )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController() *Controller
func (*Controller) Read ¶
func (c *Controller) Read(_ uint16) uint8
func (*Controller) SetState ¶
func (c *Controller) SetState(buttons [8]bool)
func (*Controller) Write ¶
func (c *Controller) Write(_ uint16, data uint8)
Click to show internal directories.
Click to hide internal directories.