Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GameplayContext ¶
type GameplayContext struct { CurrentFrameTicks uint64 PreviousFrameTicks uint64 DeltaTicks uint64 Paused bool CurrentScene string KeysPressed []sdl.Scancode ControllerButtonPressed []sdl.GameControllerButton GameController *sdl.GameController }
func NewGameplayContext ¶
func NewGameplayContext(controller *sdl.GameController) *GameplayContext
func (*GameplayContext) IsKeyPressed ¶
func (context *GameplayContext) IsKeyPressed(scancode sdl.Scancode, includeHeldKey bool) bool
func (*GameplayContext) StartNewFrame ¶
func (context *GameplayContext) StartNewFrame()
Click to show internal directories.
Click to hide internal directories.