Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emulator ¶
type Emulator interface { // SetAudio sets the audio callback SetAudio(func(*GameAudio)) // SetVideo sets the video callback SetVideo(func(*GameFrame)) GetAudio() func(*GameAudio) GetVideo() func(*GameFrame) LoadMetadata(name string) LoadGame(path string) error GetFps() uint GetSampleRate() uint GetFrameSize() (w, h int) HasVerticalFrame() bool // Start is called after LoadGame Start() // SetViewport sets viewport size SetViewport(width int, height int) // SetMainSaveName sets distinct name for saves naming SetMainSaveName(name string) // SaveGameState save game state SaveGameState() error // LoadGameState load game state LoadGameState() error // GetHashPath returns the path emulator will save state to GetHashPath() string // Close will be called when the game is done Close() // ToggleMultitap toggles multitap controller. ToggleMultitap() // Input passes input to the emulator Input(player int, data []byte) }
type InputEvent ¶
type InputEvent struct {
RawState []byte
}
Directories ¶
Path | Synopsis |
---|---|
Package image contains functions for rotations of points in a 2-dimensional space.
|
Package image contains functions for rotations of points in a 2-dimensional space. |
Click to show internal directories.
Click to hide internal directories.