Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Left = (&impulse{Name: "Left", keys: leftKeys, padControls: leftPad}).register() Right = (&impulse{Name: "Right", keys: rightKeys, padControls: rightPad}).register() Up = (&impulse{Name: "Up", keys: upKeys, padControls: upPad}).register() Down = (&impulse{Name: "Down", keys: downKeys, padControls: downPad}).register() Jump = (&impulse{Name: "Jump", keys: jumpKeys, padControls: jumpPad}).register() Action = (&impulse{Name: "Action", keys: actionKeys, padControls: actionPad}).register() Exit = (&impulse{Name: "Exit", keys: exitKeys, padControls: exitPad}).register() Fullscreen = (&impulse{Name: "Fullscreen", keys: fullscreenKeys}).register() )
Functions ¶
func LoadFromDemo ¶
func LoadFromDemo(state *DemoState)
func UsingGamepad ¶
func UsingGamepad() bool
Types ¶
type DemoState ¶
type DemoState struct { UsingGamepad bool Left ImpulseState Right ImpulseState Up ImpulseState Down ImpulseState Jump ImpulseState Action ImpulseState Exit ImpulseState }
func SaveToDemo ¶
func SaveToDemo() *DemoState
type ImpulseState ¶
Click to show internal directories.
Click to hide internal directories.