Space Navigator 3D

Peter Hutterer peter.hutterer at who-t.net
Sun Aug 30 21:34:41 PDT 2009


On Mon, Aug 31, 2009 at 01:11:54PM +1000, Timothy S. Nelson wrote:
>> On Mon, Aug 31, 2009 at 09:13:01AM +1000, Timothy S. Nelson wrote:
>>> I have a pointing device with 5 axes (a Space Navigator).  Does anyone
>>> know how I can assign one of them to be a scroll wheel?
>>
>> provided that the space navigator gives you x/y axes and you're running
>> evdev from master, enable wheel emulation on button 0.
>
> 	Hmm.  Like this?
>
> Device '3Dconnexion SpaceNavigator':
> 	Device Enabled (133):	1
> 	Evdev Reopen Attempts (266):	10
> 	Evdev Axis Inversion (267):	0, 0
> 	Evdev Axis Calibration (268):
> 	Evdev Axes Swap (269):	0
> 	Evdev Middle Button Emulation (270):	2
> 	Evdev Middle Button Timeout (271):	50
> 	Evdev Wheel Emulation (272):	1
> 	Evdev Wheel Emulation Axes (273):	0, 0, 4, 5
> 	Evdev Wheel Emulation Inertia (274):	0
> 	Evdev Wheel Emulation Timeout (275):	200
> 	Evdev Wheel Emulation Button (276):	0
> 	Evdev Drag Lock Buttons (277):	0
>
> 	Because I still get mouse movements when I do that.

set the inertia to 10 or something like that. not sure how you ended up with
0, that's not a valid value. other than that it looks alright. remember that
you need evdev from git, evdev 2.2 doesn't allow it.

>> tis turns every motion into a scroll wheel event.
>
> 	Hmm.  But I want to map two of the axes to mouse movements, and two to  
> scroll.  Can that be done?

not yet, sorry. scroll handling is a bit weird, due to the requirement that
it is converted into button events before posting. the driver has the wheel
axes hardcoded. it'd be possible to add a configuration option for that but
you'd have to write the patch yourself. it's not that hard, but it requires
lots of testing to make sure it doesn't interfere with other button and axis
mappings.

Cheers,
  Peter



More information about the xorg mailing list