LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   XInput 'use' values not listed in spec (https://www.linuxquestions.org/questions/programming-9/xinput-use-values-not-listed-in-spec-730262/)

PaladinOfKaos 06-02-2009 05:44 PM

XInput 'use' values not listed in spec
 
There are two values for the XDeviceInfo.use property that are used in the modern X.org server, but are not defined in the spec. They are:
Code:

3: IsXExtensionKeyboard
4: IsXExtensionPointer

If I had to guess, I would say they mean "This device is being used to generate core [pointer,keyboard] events, but it can also be used as an extension device". Is this correct? If not, what is the actual meaning of those values?

stevexyz 06-04-2009 06:52 PM

Hi Paladin,

From the MPX page:
http://wearables.unisa.edu.au/mpx/


...in addition, the XDeviceInfo also contains a "use" field, which is of some importance. The use field can have one of 5 values:

* IsXPointer for any master pointer (i.e. cursor).
* IsXKeyboard for any master keyboard (i.e. keyboard focus)
* IsXExtensionPointer for any physical pointer device.
* IsXExtensionKeyboard for any physical keyboard device.
* IsXExtensionDevice for any physical device that is neither pointer nor keyboard (this is fairly uncommon).


I use XFree86 which seems to do it a little differently (you check for IsXExtensionDevice then check the name field) so I can't verify how much of this applies to X.org.

Cheers, Steve


All times are GMT -5. The time now is 06:51 PM.