Documentation ¶
Index ¶
- Constants
- type ControlScheme
- type Display
- type IO
- type KeyHandler
- func (k *KeyHandler) Init(cs ControlScheme)
- func (k *KeyHandler) KeyDown(key int)
- func (k *KeyHandler) KeyUp(key int)
- 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) Write(addr types.Word, value byte)
- type Screen
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 ¶
var DefaultControlScheme ControlScheme = ControlScheme{glfw.KeyUp, glfw.KeyDown, glfw.KeyLeft, glfw.KeyRight, 90, 88, 294, 288}
type IO ¶
type IO struct { KeyHandler *KeyHandler Display *Display }
type KeyHandler ¶
type KeyHandler struct {
// contains filtered or unexported fields
}
func (*KeyHandler) Init ¶
func (k *KeyHandler) Init(cs ControlScheme)
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()
Click to show internal directories.
Click to hide internal directories.