[haiku-bugs] Re: [Haiku] #7429: BJoystick and usb_joy patch

  • From: "Disreali" <trac@xxxxxxxxxxxx>
  • Date: Fri, 08 Apr 2011 16:55:35 -0000

#7429: BJoystick and usb_joy patch
-------------------------------+----------------------------
   Reporter:  caz_haiku        |      Owner:  nobody
       Type:  enhancement      |     Status:  new
   Priority:  normal           |  Milestone:  R1
  Component:  Kits/Device Kit  |    Version:  R1/Development
 Resolution:                   |   Keywords:
 Blocked By:                   |   Blocking:
Has a Patch:  1                |   Platform:  All
-------------------------------+----------------------------

Comment (by Disreali):

 Out of curiosity, I ran the testjoy cmd included in the
 [//www.freelists.org/post/haiku-development/Joysticks-in-Haiku,48
 xbox360_driver_0.2.zip] and got different results. The button 0 and button
 1 would turn on and off as I press the corresponding buttons on the
 controller. Also, I did not need to use CTRL-C to quit testjoy. Pressing
 both buttons ended the test. (Output below)

 I noticed that the xbox360_driver_0.2 has lib/libdevice.so, while
 joystick_test_code has lib/libdevicetest.so. That may account for my
 previous test not working.  I ran both testjoy cmds as is after unzipping
 the archives.

 StickIt also worked when run from the xbox360_driver dir. It is very cool
 to see the controller actually do something.

 Since I had such luck with the stuff in the xbox360_driver dir, I copied
 the xbox360 driver to /boot/home/config/add-ons/kernel/drivers/bin/ and
 made the appropriate symlink in /dev. I tested beSnesx_1.41 again, but it
 still would not work with my Logitech Rumblepad. Attempting to set
 Controller2 resulted in all being set to ''|(0)B(4)''. It may not have
 worked, but it was a different result. In my previous attempt, i would get
 no change when trying to set buttons.

 Also, I see that you include the source and project files. Are you
 building these on BeOS?

 testjoy output:
 {{{
 /hdev/haiku/patches/joystick/xbox360_driver-0.2> testjoy
 /dev/joystick/usb_haiku/0

 Standard mode test: press both buttons to quit
 axes 0 =      0
 axes 1 =   -256
 button 0 = ON
 button 1 = ON

 Enhanced mode test: press first two buttons to quit
 Device: Joystick
 Module: Module

 Axis 0:      0
 Axis 1:   -256
 Axis 2:   -256
 Axis 3:      0
 Button 0: ON
 Button 1: ON
 Button 2: off
 Button 3: off
 Button 4: off
 Button 5: off
 Button 6: off
 Button 7: off
 Button 8: off
 Button 9: off
 Button 10: off
 Button 11: off
 /hdev/haiku/patches/joystick/xbox360_driver-0.2>
 }}}

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7429#comment:8>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: