I am developing a device which outputs absolute X and Y position information
like a graphics tablet.  I would like to be able to use this device just
like a mouse from within the X windows environment.  I have been able to get
it working with the Windows HID driver by modifying a basic mouse report
descriptor to use Input (Data, Variable, Absolute) instead of Input (Data,
Variable, Relative) for the X and Y usages.  This seems to sort of work in
Linux as the mouse cursor moves in generally the correct way but the X and Y
limits that correspond to the edges of the screen seem to change.  I am
using Red Hat 8.0 in case you're wondering.

This is my report descriptor...

Usage Page (Generic Desktop Control)                    05 01 
Usage (Mouse)                                    09 02 
Collection (Application)                      A1 01 
  Usage (Pointer)                                 09 01 
  Collection (Physical)                         A1 00 
    Usage Page (Button)                      05 09 
    Usage Minimum (1)                               19 01 
    Usage Maximum (3)                               29 03 
    Logical Minimum (0)                        15 00 
    Logical Maximum (1)                        25 01 
    Report Count (3)                                 95 03 
    Report Size (1)                                  75 01 
    Input (Data, Variable, Absolute)                   81 02 
    Report Count (1)                                 95 01 
    Report Size (5)                                  75 05 
    Input (Constant)                                81 03 
    Usage Page (Generic Desktop Control)             05 01 
    Usage (X)                                    09 30 
    Usage (Y)                                    09 31 
    Logical Minimum (0)                        15 00 
    Logical Maximum (32767)                            26 FF 7F 
    Report Size (16)                                 75 10 
    Report Count (2)                                 95 02 
    Input (Data, Variable, Absolute)                   81 02 
    Usage (Wheel)                                   09 38 
    Logical Minimum (-127)                        15 81 
    Logical Maximum (127)                      25 7F 
    Report Size (8)                                  75 08 
    Report Count (1)                                 95 01 
    Input (Data, Variable, Relative)                   81 06 
  End Collection                                C0 
End Collection                                       C0



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to