Menu

#281 Joystick axis can not control 'button' functions

to be defined
closed
nobody
None
defect
minor
User interface
2.0.0-dev
fixed
2014-06-10
2010-11-17
simon wood
No

'button type' controls (such as lights/ebrake/etc) don't work on a D-Pad under Linux, as Linux treats these as an axis rather than a button.

The controls page allow an axis to be selected, but since it is not callibrated anywhere it does not work when racing.

Perhaps the 'button type' controls should not allow an axis to be specified.

There may be a work around (from X-Plane) here:
http://hans.fugal.net/blog/2007/06/02/joystick-hat-in-x-plane-in-linux/

1 Attachments

Discussion

  • simon wood

    simon wood - 2011-05-22

    I picked up a '3rd party' PS3 rumble pad to experiment with force-feedback/rumble.

    It's interesting to note that the majority of the buttons are pressure sensitive and therefore reported as axis (under Linux).

    There is a special Window driver which allows this controller to be used, but this includes different profiles which actually map axis->buttons depending on the profile selected.

    For the 'post 2.0' change to the joystick handling should accomodate pressure-buttons.
    Simon

     
  • simon wood

    simon wood - 2011-06-24
    • summary changed from Button Type Controls don't work with D-Pad on Linux to Joystick axis can not control 'button' functions
     
  • simon wood

    simon wood - 2011-06-24

    I've implemented a new type of control 'ATOB' (axis to button) which can map button functions onto a 1D axis. An axis is compared to min/max values for each function, when there is a match the function is triggered.

    This really needs to have a callibration page associated with it, any suggestions on how to do this are welcome. At present you have to edit the 'preferences.xml' file to set min/max.

    Note: A D-Pad on linux is (sometimes) represented as a 2D axis, the ATOB can treat each axis seperately to enable use a 4 or more buttons.

     
  • simon wood

    simon wood - 2011-06-24
     
  • simon wood

    simon wood - 2011-07-06
    • status changed from new to closed
    • resolution set to fixed

    fixed in r3709 and r3710

     

    Related

    Commit: [r3709]
    Commit: [r3710]

  • simon wood

    simon wood - 2014-06-10
    • Description has changed:

    Diff:

    
    
    • assigned_to: Boris Antonevich --> nobody
     

Log in to post a comment.

MongoDB Logo MongoDB