Comments (2)
Confirmed but unfortunately it has nothing to do with libcwiid nor wminput. I just experimented a bit, and it seems that it's a bug in Xorg. I was able to reproduce the crash without any dependency to cwiid whatsoever.
Steps to reproduce:
- Create an uinput device.
- Enable a relative or an absolute axis.
- Enable a key from AT key set. (KEY_ prefixes).
- Send a EV_KEY event.
If any AT key is enabled, the device is handled as a keyboard.
If a relative axis was enabled, crashing can be avoided by registering one standard mouse button (BTN_MOUSE for example). It seems, that whenever a device has two relative axes and at least one mouse button, it is handled as mouse. However, I have no idea why this affects the crash behavior. It is quite odd that just enabling some capabilities causes the device to become a crash cannon..
There is something really wrong in Xorg's capability checking.. this should be reported to Xorg.
from cwiid.
Big thanks for confirming this and tracking it down! I'm not sure I do the workaround correctly, though. I change Classic.Home to BTN_MOUSE, and remove the ones with KEY_ prefixes, but I can still crash it - whether the axes are set to relative or not.
from cwiid.
Related Issues (20)
- Can't connect (invalid/unknown type)
- Python3 support HOT 13
- diffrent nunchuck issues HOT 1
- Feature Request: Raw Data Reporting in Python
- Wii drums support HOT 1
- domain dead
- [Q] suspicious chinese wiimote clone HOT 2
- What about Wii Motion Plus ? HOT 1
- Unable to control mouse whatsoever
- Unable to install cwiid onto my lego ev3dev robot HOT 3
- Absolute ir mouse doesn't work with xf86-input-libinput
- Suggestion: expose address in Python interface
- Communications from nunchuk connected to wiimote yield, "Received unexpected write report" HOT 1
- Documentation addition needed to man page for libcwiid
- Duplicate table entries on output with wm.state with expanded rpt_mode
- man page updates
- An improper locking bug on the lock wiimote->rpt_mutex HOT 1
- Download issue HOT 1
- Support HID wiimotes (Mayflash Dolphinbar)
- wminput bug
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 cwiid.