gomeboycolor: github.com/brycereitano/gomeboycolor/inputoutput Index | Files

package inputoutput

import "github.com/brycereitano/gomeboycolor/inputoutput"

Index

Package Files

inputoutput.go

Constants

const (
    UP  = iota
    DOWN
    LEFT
    RIGHT
    A
    B
    START
    SELECT
)
const PREFIX string = "IO"
const ROW_1 byte = 0x10
const ROW_2 byte = 0x20
const SCREEN_HEIGHT int = 144
const SCREEN_WIDTH int = 160

Variables

var KeyToIntMap = map[string]int{
    "up":     UP,
    "down":   DOWN,
    "left":   LEFT,
    "right":  RIGHT,
    "a":      A,
    "b":      B,
    "start":  START,
    "select": SELECT,
}

type IO Uses

type IO struct {
    KeyHandler          *KeyHandler
    ScreenOutputChannel chan *types.Screen
    AudioOutputChannel  chan int
}

func NewIO Uses

func NewIO() *IO

func (*IO) Run Uses

func (i *IO) Run()

This will wait for updates to the display or audio and dispatch them accordingly

type KeyHandler Uses

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

func (*KeyHandler) LinkIRQHandler Uses

func (k *KeyHandler) LinkIRQHandler(m components.IRQHandler)

func (*KeyHandler) Name Uses

func (k *KeyHandler) Name() string

func (*KeyHandler) Read Uses

func (k *KeyHandler) Read(addr types.Word) byte

func (*KeyHandler) Reset Uses

func (k *KeyHandler) Reset()

func (*KeyHandler) ServeHTTP Uses

func (kh *KeyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*KeyHandler) Write Uses

func (k *KeyHandler) Write(addr types.Word, value byte)

Package inputoutput imports 7 packages (graph) and is imported by 1 packages. Updated 2017-10-22. Refresh now. Tools for package owners. This is a quick bug-fix fork (has fewer than three commits, and only during the week it was created).