Documentation ¶
Index ¶
- Constants
- type ChrROMPage
- type Controller
- func (c *Controller) PressA()
- func (c *Controller) PressB()
- func (c *Controller) PressDown()
- func (c *Controller) PressLeft()
- func (c *Controller) PressRight()
- func (c *Controller) PressSelect()
- func (c *Controller) PressStart()
- func (c *Controller) PressUp()
- func (c *Controller) Read() byte
- func (c *Controller) ReleaseA()
- func (c *Controller) ReleaseB()
- func (c *Controller) ReleaseDown()
- func (c *Controller) ReleaseLeft()
- func (c *Controller) ReleaseRight()
- func (c *Controller) ReleaseSelect()
- func (c *Controller) ReleaseStart()
- func (c *Controller) ReleaseUp()
- func (c *Controller) Strobe(s byte)
- type Frame
- type Pixel
- type PrgROMPage
- type ROM
- type Trainer
Constants ¶
View Source
const ( ButtonReleased = 0 ButtonPressed = 1 )
View Source
const ( TrainerSize = 512 PrgROMPageSize = 16384 ChrROMPageSize = 8192 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChrROMPage ¶
type ChrROMPage [ChrROMPageSize]byte
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) PressA ¶
func (c *Controller) PressA()
func (*Controller) PressB ¶
func (c *Controller) PressB()
func (*Controller) PressDown ¶
func (c *Controller) PressDown()
func (*Controller) PressLeft ¶
func (c *Controller) PressLeft()
func (*Controller) PressRight ¶
func (c *Controller) PressRight()
func (*Controller) PressSelect ¶
func (c *Controller) PressSelect()
func (*Controller) PressStart ¶
func (c *Controller) PressStart()
func (*Controller) PressUp ¶
func (c *Controller) PressUp()
func (*Controller) Read ¶
func (c *Controller) Read() byte
func (*Controller) ReleaseA ¶
func (c *Controller) ReleaseA()
func (*Controller) ReleaseB ¶
func (c *Controller) ReleaseB()
func (*Controller) ReleaseDown ¶
func (c *Controller) ReleaseDown()
func (*Controller) ReleaseLeft ¶
func (c *Controller) ReleaseLeft()
func (*Controller) ReleaseRight ¶
func (c *Controller) ReleaseRight()
func (*Controller) ReleaseSelect ¶
func (c *Controller) ReleaseSelect()
func (*Controller) ReleaseStart ¶
func (c *Controller) ReleaseStart()
func (*Controller) ReleaseUp ¶
func (c *Controller) ReleaseUp()
func (*Controller) Strobe ¶
func (c *Controller) Strobe(s byte)
type PrgROMPage ¶
type PrgROMPage [PrgROMPageSize]byte
type ROM ¶
type ROM struct { Trainer Trainer PrgROM []PrgROMPage ChrROM []ChrROMPage }
func NewROM ¶
func NewROM(trainer Trainer, prgROM []PrgROMPage, chrROM []ChrROMPage) *ROM
type Trainer ¶
type Trainer [TrainerSize]byte
Click to show internal directories.
Click to hide internal directories.