Changes between Version 1 and Version 2 of Tutorial4AddInputFrontend
- Timestamp:
- Nov 22, 2017, 11:23:17 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorial4AddInputFrontend
v1 v2 49 49 }}} 50 50 51 Here, the path to use is ''' usb-DragonRise_Inc._Generic_USB_Joystick-event-joystick''':51 Here, the path to use is '''{{{/dev/input/by-id/usb-DragonRise_Inc._Generic_USB_Joystick-event-joystick}}}''': 52 52 53 53 {{{ … … 102 102 When 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. 103 103 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.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. 105 105 106 106 Anyway, we should now have the following config: … … 231 231 }}} 232 232 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]]).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]]). 234 234 235 235 Note that this class is already in '''Py4bot'''.
