playmode

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: GPL-3.0, GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package playmode is a simple way of running the emulation. It handles setup of the hardware, preparation of playback scripts (for recording or playback), attaching of a GUI and routing of input events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyboardEventHandler

func KeyboardEventHandler(ev gui.EventKeyboard, vcs *hardware.VCS) (bool, error)

KeyboardEventHandler handles keypresses sent from a GUI. Returns true if key has been handled, false otherwise.

For reasons of consistency, this handler is used by the debugger too.

func MouseButtonEventHandler

func MouseButtonEventHandler(ev gui.EventMouseButton, vcs *hardware.VCS, scr gui.GUI) (bool, error)

MouseButtonEventHandler handles mouse events sent from a GUI. Returns true if key has been handled, false otherwise.

func MouseMotionEventHandler

func MouseMotionEventHandler(ev gui.EventMouseMotion, vcs *hardware.VCS) (bool, error)

MouseMotionEventHandler handles mouse events sent from a GUI. Returns true if key has been handled, false otherwise.

func Play

func Play(tv television.Television, scr gui.GUI, newRecording bool, cartload cartridgeloader.Loader, patchFile string, hiscoreServer bool) error

Play is a quick of setting up a playable instance of the emulator.

Types

This section is empty.

Jump to

Keyboard shortcuts

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