LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-02-2009, 05:44 PM   #1
PaladinOfKaos
LQ Newbie
 
Registered: Mar 2006
Location: Oregon, Earth, Sol System, Orion Arm, Milky Way Galaxy
Distribution: Gentoo
Posts: 13
Blog Entries: 1

Rep: Reputation: 0
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?
 
Old 06-04-2009, 06:52 PM   #2
stevexyz
LQ Newbie
 
Registered: Apr 2008
Location: Hampshire, UK
Distribution: None
Posts: 27

Rep: Reputation: 16
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
EDID values differ from Monitor size and spec irj Linux - Newbie 0 10-07-2008 01:21 PM
xinput missing in testing, how to swap Wacom buttons? Moloko Debian 1 06-06-2006 02:35 AM
GTK with Xinput support pugsley SUSE / openSUSE 0 01-26-2006 05:12 PM
Listed partition in cfdisk, but not listed in /dev? Erik_the_Red Linux - Newbie 7 08-05-2005 11:44 PM
gtk2 with xinput support issue MayaPT Slackware 1 07-20-2005 04:02 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration