[PD] keyboard-interface (hid?)

Hans-Christoph Steiner hans at eds.org
Sat Mar 5 22:45:28 CET 2005


(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:
> 1) 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.

> 2) 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:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XF86Config-4
Type: application/octet-stream
Size: 4752 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20050305/a31c2b80/attachment.obj>
-------------- next part --------------


>
> 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:
> 1) Is it possible to access this 2. keyboard somehow with hid?

again, sounds like you need  "modprobe evdev"

> 2) 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


More information about the Pd-list mailing list