SuperTuxKart

From Noisebridge
Revision as of 00:42, 17 March 2019 by Jpkrause (talk | contribs) (SuperTuxKart Setup and Info)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the page for documenting anything related to the SuperTuxKart with Racing Wheels setup.

Attached is the controller config file. It is located at `C:\Users\Tux\AppData\Roaming\supertuxkart\0.10-beta`. This file has the proper settings for the two racing wheels to work correctly in the game. This was created manually by analyzing the output of `supertuxkart.exe --gamepad-visualization`. This is necessary for the Logitech wheel because it is not made for a computer but rather for an XBOX, thus it has weird axes making input calls constantly to the computer and makes it impossible to set the controller up from within TuxKart.

Attached is a picture of the data read from the visualizer for the Logitech controller, just for reference. The controller config above should be referenced for what Tuxkart actually expects as a controller config. The entries in the config look like the following XML:

   <action name="steerLeft" event="2" id="0" direction="0" range="0" />
   <action name="steerRight" event="2" id="0" direction="1" range="0" />
   <action name="accel" event="2" id="5" direction="1" range="0" />
   <action name="brake" event="2" id="2" direction="1" range="0" />
   <action name="nitro" event="3" id="5" />

The `event` field refers to the type of input. `2` is an axis input, `3` is a button input, and I think `1` is a keyboard key. The `id` field refers to the axis or button number from the visualizer, zero-indexed. The `direction` field is for axis input. `0` is negative, `1` is positive. Not sure about the `range` field, but it's usually `0`.