Comments (7)
The battery report is ID 04
, which is is only one byte long. The values i saw until now where always around 80-90. I will observe that and make some tests to find out the correct scale, should be easy then to include that.
from xpadneo.
The report descriptor says the (logical) range is between 0 and 255, I cannot confirm that - I think that it already turned off at around 80 once.
Usage Page (Generic Device Controls) 05 06
Usage (Battery Strength) 09 20
Logical Minimum (0) 15 00
Logical Maximum (255) 26 FF 00
Report Size (8) 75 08
Report Count (1) 95 01
Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 81 02
from xpadneo.
At least in Linux it behaves like the following:
Relatively full batteries are at 0x86
, it stops all rumbling effects at 0x84
, it shuts down before reaching 0x83
(for just a moment it becomes 0x04
- sometimes 0x06
).
I will have to:
- Check if the behaviour is the same for windows
- Check how the value is with new, full, quality batteries
Update 1:
- 0x84 ~ 00-25% (Rumble deactivated)
- 0x85 ~ 25-50%
- 0x86 ~ 50-75%
- 0x87 ~75-100%
Or maybe it is 0-10%, 10-50%, 50-90%, 90-100%?
Update 2:
It's the same behaviour in Windows
Update 3:
- 0x80 ~Power Cord attached
from xpadneo.
All Information above is only true for AA batteries! I will therefore impement this kind first, I think that the "play and charge"-battery differs a bit since it uses different connectors (at least for charging).
from xpadneo.
Started development: d8087aa
from xpadneo.
Basic reports are implemented now, for everything else: let's open a new issue.
from xpadneo.
see #22 (comment)
from xpadneo.
Related Issues (20)
- Double Input / Ghost Input HOT 9
- Controller rumble has stopped working HOT 21
- Vibration not work on Gamesir T4 Pro HOT 7
- When xbox controller is not actively connected to bluetooth, bluetooth will suddenly stop working for other bluetooth devices. HOT 1
- Did not find any bluetooth devices fedora 39. HOT 4
- Packaging issue HOT 4
- Gulikit kk3 max recognized as 360 and rumble issues HOT 1
- Series controller not found at all HOT 7
- How To Update Controller Firmware through Xbox Accessories and VirtualBox HOT 1
- Steam and Wine not seeing any sort of input on the controls HOT 2
- Triggers getting stuck after releasing them HOT 9
- Xbox Controller still shown as connected after disconnecting HOT 11
- Controllers do not register as joysticks after reboot HOT 2
- Xbox elite Series 2 - MAC address not showing
- Steam deck support (haptics) HOT 3
- xbox cloud gaming with xbox series x controller x and y swapped and trigger not working HOT 1
- gentoo + 045e:02ea Microsoft Corp. Xbox One Controller (wired usb) HOT 7
- Can't get it to compile on an aarch64(snapdragon 845) phone HOT 11
- Programm not working / driver problems HOT 1
- Can't play with two controllers HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xpadneo.