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 ¶
- func KeyboardEventHandler(ev gui.EventKeyboard, vcs *hardware.VCS) (bool, error)
- func MouseButtonEventHandler(ev gui.EventMouseButton, vcs *hardware.VCS, scr gui.GUI) (bool, error)
- func MouseMotionEventHandler(ev gui.EventMouseMotion, vcs *hardware.VCS) (bool, error)
- func Play(tv *television.Television, scr gui.GUI, newRecording bool, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyboardEventHandler ¶
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 ¶
MouseButtonEventHandler handles mouse events sent from a GUI. Returns true if key has been handled, false otherwise.
func MouseMotionEventHandler ¶
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.