Re: Logitech MediaPlay

From: Christian Holzberger <molle(at)idontgivemynametoamachine.net>
Date: Wed, 01 Feb 2006 17:28:55 +0100

On Wed, 2006-02-01 at 17:01 +0100, Oliver Fromme wrote:
> Christian Holzberger <molle(at)idontgivemynametoamachine.net> wrote:
> > Oliver Fromme wrote:
> > > Christian Holzberger <molle(at)idontgivemynametoamachine.net> wrote:
> > > > ich habe ein Problem mit meiner Logitech MediaPlay Maus (ueber usb
> > > > angeschlossen). Die Maus hat 12 Buttons, aber nur 7 davon werden von
> > > > ums0 erkannt.
> > >
> > > Alle zwölf Buttons wirst Du unter X so ohne weiteres nicht
> > > verwenden können. Das X-Protokoll unterstützt bis zu fünf
> > > Buttons.
> >
> > Das stimmt so nicht. Xev erkennt schon 7 der 12 Buttons,
>
> Xev »erkennt« gar nichts, sondern gibt nur Events aus.
> Daß die Buttons irgendwelche Events generieren, mag ja
> durchaus sein.
>
hehe, das wollt ich doch sagen, Xev gibt für 7 buttons events aus:

--- snip ---
xev > log.txt

 ButtonPress event, serial 28, synthetic NO, window 0x1800001,
    root 0x11d, subw 0x1800002, time 4764102, (59,66), root:(63,142),
    state 0x10, button 1, same_screen YES
    
EnterNotify event, serial 28, synthetic NO, window 0x1800001,
    root 0x11d, subw 0x0, time 4764102, (59,66), root:(63,142),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus YES, state 272

KeymapNotify event, serial 28, synthetic NO, window 0x0,
    keys: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
           0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    
ButtonRelease event, serial 28, synthetic NO, window 0x1800001,
    root 0x11d, subw 0x1800002, time 4764200, (59,66), root:(63,142),
    state 0x110, button 1, same_screen YES

LeaveNotify event, serial 28, synthetic NO, window 0x1800001,
    root 0x11d, subw 0x0, time 4764200, (59,66), root:(63,142),
    mode NotifyUngrab, detail NotifyInferior, same_screen YES,
    focus YES, state 16

ButtonPress event, serial 28, synthetic NO, window 0x1800001,
    root 0x11d, subw 0x1800002, time 4766189, (59,66), root:(63,142),
    state 0x10, button 4, same_screen YES

EnterNotify event, serial 28, synthetic NO, window 0x1800001,
    root 0x11d, subw 0x0, time 4766189, (59,66), root:(63,142),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus YES, state 2064

KeymapNotify event, serial 28, synthetic NO, window 0x0,
    keys: 29 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
           0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

ButtonPress event, serial 28, synthetic NO, window 0x1800001,
    root 0x11d, subw 0x1800002, time 4769123, (60,66), root:(64,142),
    state 0x10, button 6, same_screen YES
    
EnterNotify event, serial 28, synthetic NO, window 0x1800001,
    root 0x11d, subw 0x0, time 4769123, (60,66), root:(64,142),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus YES, state 16

KeymapNotify event, serial 28, synthetic NO, window 0x0,
    keys: 29 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
           0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    
ButtonRelease event, serial 28, synthetic NO, window 0x1800001,
    root 0x11d, subw 0x1800002, time 4769251, (60,66), root:(64,142),
....
---- snip ----

> > > > noch XFree, wenn ich es auf /dev/ums0 zugreifen lasse.
> > >
> > > Wie gesagt, X kann maximal fünf Buttons unterscheiden.
> >
> > Wie gesagt ich kann 7 nutzen also stimmt die Aussage so nicht.
>
> Was meinst Du mit »nutzen«? Wie nutzt Du diese sieben
> denn? Daß das X-Protokoll nur fünf Pointer-Buttons unter-
> scheiden kann, ist nunmal so und läßt sich nicht ohne wei-
> teres ändern.

Warum kann mir Xev diese anderen Buttons dann anzeigen?
>
> Aber vielleicht kann man es irgendwie als Input-Device kon-
> figurieren, so daß die zusätzlichen Buttons wie die Tasten
> einer Tastatur gehandhabt werden. Sowas habe ich aber
> noch nicht probiert und weiß nicht, ob das geht.
>

ok, nutzen war in dem sinne gemeint das die ButtonPresses als Events
ankommen, und ich habe jetzt einfach mal angenommen das mein WM
(Enlightenment DR 17) auch mit diesen umgehen kann da das Evas
eventhandling auf Knopfdrücke reagiert und mir dann den gedrückten
Button zurückliefert.

> Gruß
> Olli
>

-- 
Gruß,
Christian Holzberger
<molle(at)idontgivemynametoamachine.net>
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Wed 01 Feb 2006 - 17:31:46 CET

search this site