Subject: Re: Oddball USB mouse/joystick
To: David Brownlee <abs@absd.org>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-x11
Date: 03/28/2007 13:36:14
On Mar 28, 2007, at 12:05 PM, David Brownlee wrote:

> 	So, I've found an oddball USB 'mouse' which identifies itself as
> 	a joystick:

 From reading the article, it looks like it IS a joystick with a  
different body, rather than an odd-ball mouse.

>
> 	http://www.vnunet.com/computeractive/hardware/2012977/hall-effect- 
> technologies-evomouse
>
> 	It appears to have four axes of movement (left, right, turn, tilt),
> 	mouse wheel and four buttons, and while it looks like a mouse it
> 	appears to report absolute rather than relative X Y values.
>
> uhidev1 at uhub1 port 2 configuration 1 interface 0
> uhidev1: HE Evomouse, rev 1.00/0.00, addr 3, iclass 3/1
> uhid0 at uhidev1: input=6, output=0, feature=0
>
> # usbhidctl -f /dev/uhid0 -r -v
> Report descriptor:
> Collection page=Generic_Desktop usage=Joystick
> Input   size=1 count=4 Array page=Button usage=Button_1..Button_1,  
> logical range 0..1
> Input   size=4 count=1 Const page=0x0000 usage=0x0000, logical  
> range 0..1
> Collection page=Generic_Desktop usage=Pointer
> Input   size=8 count=1 page=Generic_Desktop usage=X, logical range  
> 0..255
> Input   size=8 count=1 page=Generic_Desktop usage=Y, logical range  
> 0..255
> Input   size=8 count=1 page=Generic_Desktop usage=Z, logical range  
> 0..255
> Input   size=8 count=1 page=Generic_Desktop usage=Rx, logical range  
> 0..255
> End collection
> Input   size=8 count=1 page=Generic_Desktop usage=Wheel, logical  
> range -128..127
> End collection
> Total   input size 6 bytes
> Total  output size 0 bytes
> Total feature size 0 bytes
>
> 	So... how does one use such a thing under x11? (modular :)
>
>
> -- 
> 			   David Brownlee -- abs@absd.org

-- thorpej