models

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2018 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

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 Frame

type Frame struct {
	// contains filtered or unexported fields
}

func NewFrame

func NewFrame() *Frame

func (*Frame) Create

func (f *Frame) Create() image.Image

func (*Frame) Push

func (f *Frame) Push(pix Pixel)

type Pixel

type Pixel struct {
	X int
	Y int

	Color color.RGBA
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL