Changes between Version 1 and Version 2 of Tutorial4AddInputFrontend


Ignore:
Timestamp:
Nov 22, 2017, 11:23:17 AM (8 years ago)
Author:
fma
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Tutorial4AddInputFrontend

    v1 v2  
    4949}}}
    5050
    51 Here, the path to use is '''usb-DragonRise_Inc._Generic_USB_Joystick-event-joystick''':
     51Here, the path to use is '''{{{/dev/input/by-id/usb-DragonRise_Inc._Generic_USB_Joystick-event-joystick}}}''':
    5252
    5353{{{
     
    102102When playing with analog axis, we can see that a few of them are inverted. '''Py4bot''' expects than values increase when you push axis front/right. If it is not the case, we need to click the '''Invert''' checkbox.
    103103
    104 Note that on this specific gamepad, the '''{{{ABS_Z}}}''' axis is a combination of '''{{{ABS_X}}}''' and '''{{{ABS_RZ}}}'''. Don't know what is the purpose... I suggest we don't use it.
     104Note that on this specific gamepad, the {{{ABS_Z}}} axis is a combination of {{{ABS_X}}} and {{{ABS_RZ}}}. Don't know what is the purpose... I suggest we don't use it.
    105105
    106106Anyway, we should now have the following config:
     
    231231}}}
    232232
    233 That's it, our new gamepad support is added. We can then use it as fronted for our '''{{{Gamepad}}}''' class, instead of '''{{{Thrustmaster}}}''' (see [[Tutorial1FirstRobot|tutorial 1]]).
     233That's it, our new gamepad support is added. We can then use it as fronted for our {{{Gamepad}}} class, instead of {{{Thrustmaster}}} (see [[Tutorial1FirstRobot|tutorial 1]]).
    234234
    235235Note that this class is already in '''Py4bot'''.