[RFC] Device hierarchy for MPX
igor at hybrid-lab.co.uk
Mon Sep 17 07:46:16 PDT 2007
On 17/09/2007, Daniel Stone <daniel at fooishbar.org> wrote:
> > ===== Merged states =====
> > The merged state from the MD follows effectively the same rules as the
> > current behaviour of the core devices. E.g. if mouse1 and mouse2 press
> > button 1 and 2 respectively, the MD has buttons 1 & 2 set.
> > Button remapping takes in affect _before_ the MD sets state. If SD swaps
> > buttons 1 and 2, pressing physical button 2 on the SD causes a button 1
> > press on the MD.
> > [Daniel, this should work for keyboards as well, right?]
> This should be fine for keyboards, with the slightly odd semantics that
> holding down Ctrl on one keyboard and pressing Q on another will quit
> your app. As I explained, sending both the individual and merged state
> in the event will 'solve' this, but it's a question if these are the
> semantics we want or not.
You only need to send one event - just let the user choose the behaviour at
startup... It would be even cooler to let the user map the behaviour - if
they have two two-button mice, let them choose what each button is assigned
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the xorg