Skip to content

support for 16bit values in the gamepad module #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Apr 28, 2019 · 3 comments
Closed

support for 16bit values in the gamepad module #34

ghost opened this issue Apr 28, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 28, 2019

My jstest command on Linux shows 16bits values for signed 8bit values sent from the gamepad.py module; would it be possible to send 16bit values? I need a better resolution for my project...

@dhalbert
Copy link
Collaborator

We'd like to generalize this so you can specify gamepads with wider ranges, more buttons, etc. This requires run-time generation of USB HID descriptors, which is a long-term goal of ours. See also:

adafruit/circuitpython#1696
adafruit/circuitpython#1015

@ghost
Copy link
Author

ghost commented Apr 28, 2019

Being new to the wonderful world of HID devices, I just found that "Virtual Reality controls" are listed in the "USB HID Usage Tables", which corresponds more to what I'd like to create : https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf , so a better question would be: how to create a (USB and BLE) HID VR device?

@dhalbert
Copy link
Collaborator

Closing as gamepad is no longer part of this library. Instead you can create your own custom HID devices, as of CircuitPython 7.0.0. See https://learn.adafruit.com/custom-hid-devices-in-circuitpython

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant