(I CC'ed the list since I think this will be of general interest)
On Mar 5, 2005, at 2:15 PM, Georg Holzmann wrote:
Hallo!
I have made now an array, where all the keys are stored in (but not automatic generated from /usr/include/linux/input.h - see attached file). Maybe this is not so good - but it works ...
cool!
Some more (maybe stupid) linux specific questions:
If I add an additional mouse (so it's now the 3. mouse if you also count the touchpad) this mouse is on my computer /dev/input/mouse2, but it's not in /dev/input/event* .
Sounds like you need to "modprobe evdev"
So:
- Is it also possible to access /dev/input/mouse2 with hid (because I
didn't manage it ...) ?
No, that device uses a different data structure. Same with /dev/input/js0. Those are deprecated I think.
- This 3. mouse also influences the displayed mouse of the X - is it
also possible to deactivate this mouse for X (so that it is only used within PD) ?
Yeah, that is possible, you need to specify each mouse separately in /etc/X11/SF86Config-4. Then do this for the mouse that you want to use with X:
InputDevice "Mouse2" "SendCoreEvents"
You might also need to prevent X from getting all mouse events. I attached my XF86Config-4:
Now for the keyboard: If I add a 2. keyboard I also don't get it in /dev/input/event* . I
couldn't find it yet, where it is, but X knows the keyboard, so you can write
with it. So again the same questions:
- Is it possible to access this 2. keyboard somehow with hid?
again, sounds like you need "modprobe evdev"
- And can I disable it for X again ?
I haven't done that before, but it should be possible in the same way
as I did it with the mouse.
.hc
Thanks again, LG Georg
-- DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen! AKTION "Kein Einrichtungspreis" nutzen:
http://www.gmx.net/de/go/dsl<hid_linux.c>
Using ReBirth is like trying to play an 808 with a long stick. -David Zicarelli