io

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JoystickController

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

JoystickController is the emulator joystick(s) controller

func NewJoystickController

func NewJoystickController() *JoystickController

NewJoystickController creates a new controller

func (*JoystickController) AddReceiver

func (controller *JoystickController) AddReceiver(receiver joystick.Joystick, id byte)

AddReceiver adds a joystick receiver to the controller at associated ID

func (*JoystickController) AxisEvent

func (controller *JoystickController) AxisEvent(id, axis, value byte)

AxisEvent emits a joystick axis event

func (*JoystickController) ButtonEvent

func (controller *JoystickController) ButtonEvent(id, button, state byte)

ButtonEvent emits a joystick button event

func (*JoystickController) Flush

func (controller *JoystickController) Flush()

Flush flushes joystick events

func (*JoystickController) RemoveReceiver

func (controller *JoystickController) RemoveReceiver(receiver joystick.Joystick)

RemoveReceiver removes the joystick receiver associated

type KeyboardController

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

KeyboardController is the emulator keyboard controller

func NewKeyboardController

func NewKeyboardController() *KeyboardController

NewKeyboardController creates a new controller with an empty keymap

func (*KeyboardController) AddReceiver

func (controller *KeyboardController) AddReceiver(receiver keyboard.Receiver, keymap keyboard.KeyMap)

AddReceiver adds a keyboard events Receiver to the controller and associated keymap

func (*KeyboardController) Flush

func (controller *KeyboardController) Flush()

Flush flushes keyboard event queue

func (*KeyboardController) KeyDown

func (controller *KeyboardController) KeyDown(keycode keyboard.KeyCode)

KeyDown emits a keyboard keydown event

func (*KeyboardController) KeyEvent

func (controller *KeyboardController) KeyEvent(keycode keyboard.KeyCode, eventType int)

KeyEvent emits a keyboard event

func (*KeyboardController) KeyUp

func (controller *KeyboardController) KeyUp(keycode keyboard.KeyCode)

KeyUp emits a keyboard keyup event

func (*KeyboardController) RemoveReceiver

func (controller *KeyboardController) RemoveReceiver(receiver keyboard.Receiver)

RemoveReceiver removes the Receiver

type TapeController

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

TapeController is the audio controller

func NewTapeController

func NewTapeController() *TapeController

NewTapeController creates a new video controller

func (*TapeController) Drive

func (controller *TapeController) Drive() *tape.Drive

Drive the tape drive

func (*TapeController) HasDrive

func (controller *TapeController) HasDrive() bool

HasDrive if there is a tape drive

func (*TapeController) SetDrive

func (controller *TapeController) SetDrive(drive *tape.Drive)

SetDrive sets audio device

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL