[o-info] using O with logitech magellan spacemouse (serial cable
version) in linux
Morten Kjeldgaard
mok at bioxray.dk
Sat Apr 30 00:22:34 CEST 2005
> I recently purchased a magellan spacemouse plus (serial cable interface)
> I've tried using the "Event Window" button in the xdriver utility to
> send X events to the O v9.0.7 window but that didn't work. Also tried it
> with setenv GAMEPAD on but that didn't work either.
Lemme first give a recommendation: buy a POWERMATE! They are terrific,
fantastic, best thing since .... well, best thing EVER!
The PowerMate works great with O under Linux if you use an application
called "evrouter". In fact, you can route events from the PowerMate
(actually: any event) to any application with an X window. Now, evrouter
will also work with the spacemouse, so there is your hint.
Ditlev Brodersen and Jesper Karlsen in our lab came up with a great way
of interacting with O using the PowerMate. First, the scroll-wheel on
the mouse is connected to the Dial Function (the little arrow in the
lower left-hand corner that shows what pseudo-dial is active). Next, the
PowerMate controls whatever function the arrow points to. Simple, and
very, very useful.
Here is the .evrouterrc file you need in your root to implement this
functionality. You may need to change the device names. Use "evrouter
--dump /dev/input/event*" to figure out what device the PowerMate
uses... it depends on what USB port it is plugged into.
----- 8< ---- snip ----
Window "O_Linux"
"Griffin PowerMate" "/dev/input/event3" any rel/7/1 "XKey/Right"
"Griffin PowerMate" "/dev/input/event3" any rel/7/-1 "XKey/Left"
"Logitech USB Receiver" "/dev/input/event2" none rel/8/-1 "XKey/Down"
"Logitech USB Receiver" "/dev/input/event2" none rel/8/1 "XKey/Up"
"Logitech USB Receiver" "/dev/input/event2" none key/276 "XKey/y+e+s+KP_Enter"
"Logitech USB Receiver" "/dev/input/event2" none key/275 "XKey/n+o+KP_Enter"
-----8< ----- snip ----
(The last two lines map a couple of extra buttons on the mouse to "Yes"
and "No", respectively). Ahhh, it so great! :-)
Enjoy,
Morten
PS: there is similar application called "PowerMated", but it can only
handle PowerMate events. However, if that is all you need, it is more
advanced than evrouter.
PS': RPMs of both programs can be found at http://apt.bioxray.dk
--
Morten Kjeldgaard, Asc. professor, Ph.D.
Department of Molecular Biology, Aarhus University
Gustav Wieds Vej 10 C, DK-8000 Aarhus C, Denmark
Lab +45 89425026 * Mobile +45 51860147 * Fax +45 86123178
Home +45 86188180 * ICQ 27224900 * http://www.bioxray.dk/~mok
More information about the o-info
mailing list