My main goal was to control mplayer, which can receive commands from lirc, but from from a fifo or from the command line like xmms can (it can however receive X events, which is where sendxevent comes in handy)
The sites I went to were:
mkfifo -m 666 /dev/mumse mkfifo -m 666 /dev/x10fifo /usr/local/sbin/multimoused -SX10 /dev/ttyS0 /usr/local/sbin/MouseRemote &And here is the relevant portion of my XF86Config (you could also use gpm or multimoused to read from your real mouse, and multiplex the event into one fake mouse device than X can read from)
Section "InputDevice"
Identifier "Real Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/psaux"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "X10 Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/mumse"
Option "Protocol" "MouseSystems"
EndSection
Section "ServerLayout"
Identifier "TV"
Screen "TV"
InputDevice "Generic Keyboard" "CoreKeyboard"
InputDevice "X10 Mouse" "CorePointer"
InputDevice "Real Mouse" "AlwaysCore"
EndSection
2004/03/24 (23:55): Version 1.0. Initial version