Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action int
const ( Nothing Action = iota Select // bool Start // bool Pause // bool P0Pro // bool P1Pro // bool StickLeft // bool StickUp // bool StickRight // bool StickDown // bool StickButtonA // bool StickButtonB // bool AnalogueSelect // bool PaddleFire // PaddleFireData PaddleMove // PaddleMoveData TrakballFire // bool TrakballMove // TrakballMove )
type AudioReader ¶
type AudioSetup ¶
type AudioSetup struct {
Freq int
Read AudioReader
}
type GUI ¶
type GUI struct {
SetImage chan Image
UserInput chan Input
Commands chan Command
Blob chan Blob
// implementations of UI should default to StateRunning
State chan State
// AudioSetup should be nil if the emulation is to have no audio
AudioSetup chan AudioSetup
// gui receives a string (last selected file) and returns result over the same channel
FileRequest chan string
RequestedFile chan string
// display an error message
ErrorDialog chan string
// optional function called by GUI during it's update loop
UpdateGUI func() error
}
type PaddleFireData ¶ added in v0.7.3
type PaddleMoveData ¶ added in v0.7.3
type TrakballMoveData ¶ added in v0.7.3
Click to show internal directories.
Click to hide internal directories.