/gamepad

🎮 Cross-platform Go library to read input from an Xbox 360 controller (or another compatible gamepad).

Primary LanguageGoMIT LicenseMIT

gamepad

Cross-platform Go library to read input from an Xbox 360 controller (or another compatible gamepad).

Installation

go get github.com/orsinium-labs/gamepad

Usage

gamepad, err := gamepad.NewGamepad(0)
// ...
state, err := gamepad.State()
fmt.Println(state.A())