[haiku-commits] r42208 - haiku/trunk/src/add-ons/kernel/drivers/input/usb_hid

Author: phoudoin
Date: 2011-06-16 18:01:32 +0200 (Thu, 16 Jun 2011)
New Revision: 42208
Changeset: https://dev.haiku-os.org/changeset/42208

Modified:
   
haiku/trunk/src/add-ons/kernel/drivers/input/usb_hid/JoystickProtocolHandler.cpp
Log:
No space was made for Hat(s) value(s) in variable_joystick.
Would explain why hat shown by StickIt was always static neutral...


Modified: 
haiku/trunk/src/add-ons/kernel/drivers/input/usb_hid/JoystickProtocolHandler.cpp
===================================================================
--- 
haiku/trunk/src/add-ons/kernel/drivers/input/usb_hid/JoystickProtocolHandler.cpp
    2011-06-16 15:24:08 UTC (rev 42207)
+++ 
haiku/trunk/src/add-ons/kernel/drivers/input/usb_hid/JoystickProtocolHandler.cpp
    2011-06-16 16:01:32 UTC (rev 42208)
@@ -104,10 +104,10 @@
        }
 
 
-       fCurrentValues.initialize(fAxisCount, 0, fMaxButton);
+       fCurrentValues.initialize(fAxisCount, fHatCount, fMaxButton);
 
-       TRACE("joystick device with %lu buttons and %lu axes\n", fButtonCount,
-               fAxisCount);
+       TRACE("joystick device with %lu buttons, %lu axes and %lu hats\n",
+               fButtonCount, fAxisCount, fHatCount);
        TRACE("report id: %u\n", report.ID());
 }
 


Other related posts:

  • » [haiku-commits] r42208 - haiku/trunk/src/add-ons/kernel/drivers/input/usb_hid - philippe . houdoin