On 06/13/2016 04:54 PM, Michael Mrozek wrote:
Am Mon, 13 Jun 2016 15:42:21 +0200 hat "H. Nikolaus Schaller" hns@goldelico.com geschrieben:
Well, maybe notaz can explain it better what he meant. But those different modes that are switched in userspace are not standard X :)
one more information about the nub/joystick driver.
While it DOES work, it's a bit of a hack and can be done in a better way. notaz (Grazvydas) suggested to change that driver so that the nubs report themselves as Input devices for X, so they can be more flexible and properly configured with the X Server.
They do present themselves as /dev/input/event* which is what X Server is looking for.
Not this again. The way the nubs worked on pandora is about the worst possible option. There are almost no games out there that expect the controls to come from 4 seperate devices, which may disapear at any time because someone set them to a different mode. Also, the modes had no configuration options, other than what was hardcoded into the kernel.
I still think the best option is to just have any hardware devices show up as whatever they really are, and have a small input daemon running that grabs all of them, and outputs it into a single easily user configurable input device.
Having to run an input daemon is still preferable to having to add special input code to any application that needs to read from the nubs/buttons. And I think a daemon is already needed to handle the volume wheel anyway.
(There has already been a lot of discussion about this on the forums, and a few half written daemons exist)