Documentation ¶
Index ¶
- Constants
- Variables
- type IO
- type KeyHandler
- 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 (kh *KeyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (k *KeyHandler) Write(addr types.Word, value byte)
Constants ¶
View Source
const ( UP = iota DOWN LEFT RIGHT A B START SELECT )
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 ¶
Functions ¶
This section is empty.
Types ¶
type IO ¶
type IO struct { KeyHandler *KeyHandler ScreenOutputChannel chan *types.Screen AudioOutputChannel chan int }
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) ServeHTTP ¶
func (kh *KeyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.