I want to assign a keyboard key to wheel axis, but it's not even available.

Only pedals are available....
Is there a way to assign a kbd key to "wheel left" and another key to "wheel right"?
Code: Select all
<axis_map>
...
</axis_map>
Code: Select all
<axis_map>
...
<axis id="rel_axis_0-" label="">
<device type="keyboard" id="0" name=""/>
<event type="button" id="a"/>
</axis>
<axis id="rel_axis_0+" label="">
<device type="keyboard" id="0" name=""/>
<event type="button" id="d"/>
</axis>
</axis_map>
Code: Select all
<axis id="rel_axis_0" label="wheel">
<device type="joystick" id="0" name="Logitech Driving Force GT USB"/>
<event type="axis" id="0" dead_zone="0" multiplier="0.0039" exponent="1.00" shape=""/>
</axis>
After reading your valuable reply, my <axis_map> structure was changed to this:GoDlike wrote: ↑Sat Jul 21, 2018 8:26 am
If it doesn't work then make sure rel_axis_0 is correct axis name for wheel axis, you can check that also inside <axis_map>, there should be something like thatIt means that rel_axis_0 is the wheel axis and if you add lines I wrote before it should work.Code: Select all
<axis id="rel_axis_0" label="wheel"> <device type="joystick" id="0" name="Logitech Driving Force GT USB"/> <event type="axis" id="0" dead_zone="0" multiplier="0.0039" exponent="1.00" shape=""/> </axis>
Code: Select all
<axis_map>
<axis id="rel_axis_0-" label="">
<device type="keyboard" id="0" name=""/>
<event type="button" id="a"/>
</axis>
<axis id="rel_axis_0+" label="">
<device type="keyboard" id="0" name=""/>
<event type="button" id="d"/>
</axis>
<axis id="rel_axis_0" label="wheel">
<device type="joystick" id="0" name="Logitech G27 Racing Wheel USB"/>
<event type="axis" id="0" dead_zone="0" multiplier="0.0039" exponent="1.00" shape=""/>
</axis>
<axis id="abs_axis_17" label="gas">
<device type="joystick" id="0" name="Logitech G27 Racing Wheel USB"/>
<event type="axis" id="1" dead_zone="0" multiplier="0.008" exponent="1.00" shape=""/>
</axis>
<axis id="abs_axis_18" label="brake">
<device type="joystick" id="0" name="Logitech G27 Racing Wheel USB"/>
<event type="axis" id="2" dead_zone="0" multiplier="0.008" exponent="1.00" shape=""/>
</axis>
<axis id="abs_axis_19" label="clutch">
<device type="joystick" id="0" name="Logitech G27 Racing Wheel USB"/>
<event type="axis" id="4" dead_zone="0" multiplier="0.008" exponent="1.00" shape=""/>
</axis>
</axis_map>