Versions in this module Expand all Collapse all v1 v1.0.1 Jun 29, 2023 Changes in this version + const ButtonCount + func SetNativeWindow(nativeWindow uintptr) + func Update() error + type Button int + const Button0 + const Button1 + const Button10 + const Button11 + const Button12 + const Button13 + const Button14 + const Button15 + const Button16 + const Button17 + const Button18 + const Button19 + const Button2 + const Button20 + const Button21 + const Button22 + const Button23 + const Button24 + const Button25 + const Button26 + const Button27 + const Button28 + const Button29 + const Button3 + const Button30 + const Button31 + const Button4 + const Button5 + const Button6 + const Button7 + const Button8 + const Button9 + type Gamepad struct + func Get(id ID) *Gamepad + func (g *Gamepad) Axis(axis int) float64 + func (g *Gamepad) AxisCount() int + func (g *Gamepad) Button(button int) bool + func (g *Gamepad) ButtonCount() int + func (g *Gamepad) Hat(hat int) int + func (g *Gamepad) HatCount() int + func (g *Gamepad) IsStandardAxisAvailable(axis gamepaddb.StandardAxis) bool + func (g *Gamepad) IsStandardButtonAvailable(button gamepaddb.StandardButton) bool + func (g *Gamepad) IsStandardButtonPressed(button gamepaddb.StandardButton) bool + func (g *Gamepad) IsStandardLayoutAvailable() bool + func (g *Gamepad) Name() string + func (g *Gamepad) SDLID() string + func (g *Gamepad) StandardAxisValue(axis gamepaddb.StandardAxis) float64 + func (g *Gamepad) StandardButtonValue(button gamepaddb.StandardButton) float64 + func (g *Gamepad) Vibrate(duration time.Duration, strongMagnitude float64, weakMagnitude float64) + type ID int + func AppendGamepadIDs(ids []ID) []ID