input

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

type Button = uint8
const (
	ButtonA      Button = 1 << 0
	ButtonB      Button = 1 << 1
	ButtonSelect Button = 1 << 2
	ButtonStart  Button = 1 << 3
	ButtonUp     Button = 1 << 4
	ButtonDown   Button = 1 << 5
	ButtonLeft   Button = 1 << 6
	ButtonRight  Button = 1 << 7
)

type Joystick

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

func NewJoystick

func NewJoystick() *Joystick

func (*Joystick) Buttons

func (c *Joystick) Buttons() uint8

func (*Joystick) LoadState

func (c *Joystick) LoadState(r *binario.Reader) error

func (*Joystick) Read

func (c *Joystick) Read() (value byte)

func (*Joystick) Reset

func (c *Joystick) Reset()

func (*Joystick) SaveState

func (c *Joystick) SaveState(w *binario.Writer) error

func (*Joystick) SetButtons

func (c *Joystick) SetButtons(buttons uint8)

func (*Joystick) Write

func (c *Joystick) Write(value byte)

type Zapper

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

func NewZapper

func NewZapper() *Zapper

func (*Zapper) Read

func (z *Zapper) Read() (value byte)

func (*Zapper) Reset

func (z *Zapper) Reset()

func (*Zapper) Update

func (z *Zapper) Update(brightness uint8, trigger bool)

func (*Zapper) VBlank

func (z *Zapper) VBlank()

Jump to

Keyboard shortcuts

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