Documentation ¶
Index ¶
- Constants
- func AxisValue(id string, axis driver.StandardGamepadAxis, state GamepadState) float64
- func ButtonValue(id string, button driver.StandardGamepadButton, state GamepadState) float64
- func HasStandardLayoutMapping(id string) bool
- func IsButtonPressed(id string, button driver.StandardGamepadButton, state GamepadState) bool
- func Update(mapping []byte) (bool, error)
- type GamepadState
Constants ¶
View Source
const ( HatUp = 1 HatRight = 2 HatDown = 4 HatLeft = 8 )
Variables ¶
This section is empty.
Functions ¶
func AxisValue ¶
func AxisValue(id string, axis driver.StandardGamepadAxis, state GamepadState) float64
func ButtonValue ¶
func ButtonValue(id string, button driver.StandardGamepadButton, state GamepadState) float64
func IsButtonPressed ¶
func IsButtonPressed(id string, button driver.StandardGamepadButton, state GamepadState) bool
Types ¶
Click to show internal directories.
Click to hide internal directories.