Documentation ¶
Index ¶
- Constants
- type ControlScheme
- type CoreIO
- type Display
- type IOHandler
- 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)
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 CoreIO ¶
type CoreIO struct { OnCloseHandler func() KeyHandler *KeyHandler StopChannel chan int Headless bool // contains filtered or unexported fields }
CoreIO contains all core functionality for running the IO event loop all sub types should extend this type
func (*CoreIO) GetAvgFrameRate ¶
func (*CoreIO) GetKeyHandler ¶
func (i *CoreIO) GetKeyHandler() *KeyHandler
GetKeyHandler returns the key handler component for managing interactions with the keyboard
func (*CoreIO) GetScreenOutputChannel ¶
GetScreenOutputChannel returns the channel to push screen change events to the IO event loop
type IOHandler ¶
type IOHandler interface { Init(title string, screenSize int, onCloseHandler func()) error GetKeyHandler() *KeyHandler GetScreenOutputChannel() chan *types.Screen GetAvgFrameRate() float32 Run() }
IOHandler interface for handling all IO interations with the emulator
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.