Documentation ¶
Overview ¶
Package input processes button presses from a gamepad or keyboard.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context is an input context.
func GetContext ¶
GetContext returns the Context created using NewContext.
It panics if no context was created.
func NewContext ¶
NewContext creates a new input context.
func (*Context) Consume ¶
Consume returns true if a button is pressed, and consumes the button press indefinitely.
func (*Context) ConsumeAllowRepeat ¶
ConsumeAllowRepeat returns true if a button is pressed, and consumes the button press for delayTicks.
Click to show internal directories.
Click to hide internal directories.