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 Channels ¶ added in v0.7.5
type Channels struct {
SetImage chan Image
UserInput chan Input
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) over the FileRequest channel
// and returns result over the RequestedFile channel
FileRequest chan string
RequestedFile chan string
// display an error message
ErrorDialog chan string
}
func NewChannels ¶ added in v0.7.5
func NewChannels() *Channels
func (*Channels) Debugger ¶ added in v0.7.5
func (c *Channels) Debugger() *ChannelsDebugger
func (*Channels) GUI ¶ added in v0.7.5
func (c *Channels) GUI() *ChannelsGUI
type ChannelsDebugger ¶ added in v0.7.5
type ChannelsGUI ¶ added in v0.7.5
type InputSource ¶ added in v0.8.0
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.