https://github.com/orsinium-labs/gamepad
🎮 Cross-platform Go library to read input from an Xbox 360 controller (or another compatible gamepad).
https://github.com/orsinium-labs/gamepad
gamepad golang input joystick xbox-controller xbox360
Last synced: 4 months ago
JSON representation
🎮 Cross-platform Go library to read input from an Xbox 360 controller (or another compatible gamepad).
- Host: GitHub
- URL: https://github.com/orsinium-labs/gamepad
- Owner: orsinium-labs
- License: mit
- Created: 2021-06-14T12:25:14.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-12T07:10:01.000Z (about 4 years ago)
- Last Synced: 2025-03-29T01:34:14.916Z (7 months ago)
- Topics: gamepad, golang, input, joystick, xbox-controller, xbox360
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 20
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gamepad
Cross-platform Go library to read input from an [Xbox 360 controller](https://en.wikipedia.org/wiki/Xbox_360_controller) (or another compatible gamepad).
## Installation
```bash
go get github.com/orsinium-labs/gamepad
```## Usage
```go
gamepad, err := gamepad.NewGamepad(0)
// ...
state, err := gamepad.State()
fmt.Println(state.A())
```