-
Notifications
You must be signed in to change notification settings - Fork 136
/
gamepads_empty.go
27 lines (22 loc) · 985 Bytes
/
gamepads_empty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// +build headless,ios,android,vulkan,sdl
package engo
import "errors"
// Gampad is a configuration of a joystick that is able to be mapped to the
// SDL_GameControllerDB.
// For more info See https://www.glfw.org/docs/3.3/input_guide.html#gamepad_mapping
// This is here for compatibility for other builds, it does not work on
// mobile or vulkan builds yet.
type Gamepad struct {
A, B, X, Y GamepadButton
Back, Start, Guide GamepadButton
DpadUp, DpadRight, DpadDown, DpadLeft GamepadButton
LeftBumper, RightBumper GamepadButton
LeftThumb, RightThumb GamepadButton
LeftX, LeftY AxisGamepad
RightX, RightY AxisGamepad
LeftTrigger, RightTrigger AxisGamepad
}
func (gm *GamepadManager) registerGamepadImpl(name string) error {
return errors.New("Gamepads are not available on this platform!")
}
func (gm *GamepadManager) updateImpl() {}