https://github.com/adamczykpiotr/simple-xpad
Simple C++ Library for Xbox One Controller / Pad
https://github.com/adamczykpiotr/simple-xpad
bluetooth cpp cpp14 linux usb usb-devices usb-hid xbox xbox-controller xbox-one xbox-one-controller
Last synced: about 2 months ago
JSON representation
Simple C++ Library for Xbox One Controller / Pad
- Host: GitHub
- URL: https://github.com/adamczykpiotr/simple-xpad
- Owner: adamczykpiotr
- Created: 2022-10-27T13:56:04.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-12T10:35:54.000Z (over 2 years ago)
- Last Synced: 2025-01-19T15:45:53.493Z (over 1 year ago)
- Topics: bluetooth, cpp, cpp14, linux, usb, usb-devices, usb-hid, xbox, xbox-controller, xbox-one, xbox-one-controller
- Language: C++
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Xbox One Controller library for Linux
Simple library for Xbox one pad/controller.
Supports both native (usb or wireless dongle) and Bluetooth modes.
### Fully working:
* [x] All buttons (press & release)
* [x] Analogs (left & right, both axes)
* [x] Triggers (left & right)
* [x] Rumble (**only native, doesn't work on Bluetooth!**)
* [x] Scanning for available controllers in the system
* [x] Auto reconnect
## Supported & tested controllers
* Rev 1914 (Red Xbox one controller)
* [x] USB-C
* [x] Dongle (behaves as USB-C)
* [x] Bluetooth
## Sources & helpful links
* [Xbox Wireless Controller](https://en.wikipedia.org/wiki/Xbox_Wireless_Controller#Third_revision_(2020))
* [Linux force feedback demo](https://gist.github.com/rikusalminen/972e3824350193bbed0c28ff96a82a73)
* [input_event (input.h)](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/input.h)