Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
Controller represents IO for general-purpose controller ports from NES
type StandardController ¶
type StandardController struct {
// contains filtered or unexported fields
}
StandardController http://wiki.nesdev.com/w/index.php/Standard_controller
func (*StandardController) Read ¶
func (c *StandardController) Read() uint8
func (*StandardController) Update ¶
func (c *StandardController) Update(state uint8)
func (*StandardController) Write ¶
func (c *StandardController) Write(value uint8)
type StandardControllerButton ¶
type StandardControllerButton = uint8
const ( StandardA StandardControllerButton = 1 << 0 StandardB StandardControllerButton = 1 << 1 StandardSelect StandardControllerButton = 1 << 2 StandardStart StandardControllerButton = 1 << 3 StandardUp StandardControllerButton = 1 << 4 StandardDown StandardControllerButton = 1 << 5 StandardLeft StandardControllerButton = 1 << 6 StandardRight StandardControllerButton = 1 << 7 )
Click to show internal directories.
Click to hide internal directories.