controller

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	// File returns the file manager
	File() *vfs.FileManager
	// Video returns the video controller
	Video() *ui.VideoController
	// Audio returns the audio controller
	Audio() *ui.AudioController
	// Keyboard returns the keyboard controller
	Keyboard() *io.KeyboardController
	// Joystick returns the joystick controller
	Joystick() *io.JoystickController
	// Tape returns the tape controller
	Tape() *io.TapeController
	// Scan process input events
	Scan()
	// Refresh refresh UI and output events
	Refresh()
}

Controller the controller interface

type EmulatorController

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

EmulatorController is the emulator controller implementation.

func New

func New() *EmulatorController

New returns a new emulator controller.

func (*EmulatorController) Audio

func (controller *EmulatorController) Audio() *ui.AudioController

Audio the audio controller

func (*EmulatorController) File

func (controller *EmulatorController) File() *vfs.FileManager

File returns the file manager

func (*EmulatorController) Joystick added in v0.6.0

func (controller *EmulatorController) Joystick() *io.JoystickController

Joystick the keyboard controller

func (*EmulatorController) Keyboard

func (controller *EmulatorController) Keyboard() *io.KeyboardController

Keyboard the keyboard controller

func (*EmulatorController) Refresh added in v0.6.0

func (controller *EmulatorController) Refresh()

Refresh refresh UI and output events

func (*EmulatorController) Scan added in v0.11.0

func (controller *EmulatorController) Scan()

Scan flushes input events

func (*EmulatorController) Tape added in v0.6.0

func (controller *EmulatorController) Tape() *io.TapeController

Tape the tape controller

func (*EmulatorController) Video

func (controller *EmulatorController) Video() *ui.VideoController

Video the video controller

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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