Documentation ¶
Index ¶
- Constants
- type ControlScheme
- type Display
- type IO
- type KeyHandler
- func (k *KeyHandler) KeyDown(key byte)
- func (k *KeyHandler) KeyUp(key byte)
- func (k *KeyHandler) LinkIRQHandler(m components.IRQHandler)
- func (k *KeyHandler) Name() string
- func (k *KeyHandler) Read(addr types.Word) byte
- func (k *KeyHandler) Reset()
- func (k *KeyHandler) RestoreKeyboard() error
- func (k *KeyHandler) Write(addr types.Word, value byte)
Constants ¶
View Source
const PREFIX string = "IO"
View Source
const ROW_1 byte = 0x10
View Source
const ROW_2 byte = 0x20
View Source
const SCREEN_HEIGHT int = 144
View Source
const SCREEN_WIDTH int = 160
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControlScheme ¶
type ControlScheme struct { RIGHT byte LEFT byte UP byte DOWN byte A byte B byte SELECT byte START byte }
var DefaultControlScheme ControlScheme = ControlScheme{
RIGHT: 0x21,
LEFT: 0x1F,
UP: 0x12,
DOWN: 0x20,
A: 0x25,
B: 0x24,
SELECT: 0x22,
START: 0x23,
}
type Display ¶
type IO ¶
type KeyHandler ¶
type KeyHandler struct {
// contains filtered or unexported fields
}
func (*KeyHandler) LinkIRQHandler ¶
func (k *KeyHandler) LinkIRQHandler(m components.IRQHandler)
func (*KeyHandler) Name ¶
func (k *KeyHandler) Name() string
func (*KeyHandler) Reset ¶
func (k *KeyHandler) Reset()
func (*KeyHandler) RestoreKeyboard ¶
func (k *KeyHandler) RestoreKeyboard() error
Click to show internal directories.
Click to hide internal directories.