playmode

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: GPL-3.0, GPL-3.0 Imports: 18 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, useSavekey bool) error

Play creates a 'playable' instance of the emulator.

The cartload argument can be used to specify a recording to playback. The contents of the file specified in Filename field of the Loader instance will be checked. If it is a playback file then the playback codepath will be used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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