Cross-platform Go library to read input from an Xbox 360 controller (or another compatible gamepad).
go get github.com/orsinium-labs/gamepad
gamepad, err := gamepad.NewGamepad(0)
// ...
state, err := gamepad.State()
fmt.Println(state.A())
🎮 Cross-platform Go library to read input from an Xbox 360 controller (or another compatible gamepad).
GoMIT
Cross-platform Go library to read input from an Xbox 360 controller (or another compatible gamepad).
go get github.com/orsinium-labs/gamepad
gamepad, err := gamepad.NewGamepad(0)
// ...
state, err := gamepad.State()
fmt.Println(state.A())