Comments (5)
Probably less important, but (0)03 heartbeat packets also send axes data. But there appears to be a bug with LT (bytes 6-7) are reset to 00. RT & sticks are sent same as above. I'll update the first post
from xpad.
is the 07 packet sent on any button press or only on home button press?
from xpad.
07 appears to be once for press and once for release of home button. Possibly Windows asks for it more often, only logging on Linux.
03 appears to be every 20 seconds
I used this in xpadone_process_packet to print packets & dmesg --follow
/* print recieved packet to kernel log */
u8 i;
for (i = 0; i < XPAD_PKT_LEN; i++) {
printk("(%i)%02x ", i, data[i]);
} printk("\n");
from xpad.
Missing these packets could cause input lag / delays.
this is rather theoretical then..
from xpad.
Yeah, (0)20 packets appear to be sent about every 8 milliseconds minimum. When a (0)03 packet is sent it doesn't appear to increase that.
Wall time Packet Diff
---------------------------------------
[52606.292251] (0)20 ...
[52606.300249] (0)20 ... 7998μs
[52606.308242] (0)20 ... 7993μs
[52606.316247] (0)20 ... 8005μs
[52606.324247] (0)20 ... 8000μs
[52606.332216] (0)20 ... 7969μs
[52606.340248] (0)20 ... 8032μs
[52606.344239] (0)03 ... 3991μs appears to just slot itself between the 8ms button packets
[52606.348246] (0)20 ... 7998μs 4007μs
[52606.356245] (0)20 ... 7999μs
[52606.364212] (0)20 ... 7967μs
[52606.372236] (0)20 ... 8024μs
EDIT: (0)07 appear to cause about 4 milliseconds delay
Wall time Packet Diff
---------------------------------------
[54156.366199] (0)20 ...
[54156.374230] (0)20 ... 8031μs
[54156.382200] (0)20 ... 7970μs
[54156.390228] (0)20 ... 8028μs
[54156.398219] (0)07 ... 7991μs
[54156.402193] (0)20 ... 11965μs 3974μs 12ms between (0)20 packets
[54156.410189] (0)20 ... 7996μs
[54156.418224] (0)20 ... 8035μs
[54156.426216] (0)20 ... 7992μs
...
[54156.490186] (0)20 ...
[54156.498217] (0)20 ... 8031μs
[54156.506183] (0)20 ... 7966μs
[54156.514172] (0)07 ... 7989μs
[54156.518192] (0)20 ... 12009μs 4020μs 12ms between (0)20 packets
[54156.522214] (0)20 ... 4022μs This packet is then sent early?
[54156.530214] (0)20 ... 8000μs
[54156.538213] (0)20 ... 7999μs
from xpad.
Related Issues (20)
- Microsoft Xbox 360 USB controller does not get properly initialized, automatically reconnects and gets erroneously recognized as a PS3 controller HOT 1
- not a mtp device -- Using degraded feature set UDP instead of UDP+EDNS0 for DNS server xxx.xx.xxx.x
- xpad return error -19 in the 8bitDo controller HOT 9
- Upstream question HOT 1
- GameSir T4 Kaleid Support? HOT 1
- (Better) support for 8BitDo Ultimate Wired Controller [PC/Switch] HOT 3
- 8BitDo Pro 2 (wired) input not properly detected if plugged in at OS boot. HOT 1
- cannot detect multiple wired xbox 360 controllers
- Module not auto update after new kernel install? HOT 3
- Error! Bad return status for module build.... /tools/bpf/resolve_btfids/resolve_btfids: No such file or directory
- Fantech WGP13 isn't recognized as an xbox controller
- (support) Gameshark Green Ghost gamepad
- Problem with Fantech GP13 controller.
- Extra buttons support for Flydigi Vader 3 Pro
- PDP Wired Controller misidentified as an arcade stick
- Support Request: HyperX Clutch HOT 1
- Extra Button Support Black Shark Green Ghost Controller HOT 1
- GameSir T4 Cyclone support HOT 3
- 8Bitdo Ultimate Bluetooth Controller connected via 2.4 GHz dongle turns off almost instantly after connecting if it's not immediately actively used HOT 3
- Is there a way for xpad to achieve smarter device detection?
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 xpad.