Joystick

From Custom Mario Kart
Revision as of 11:03, 15 March 2021 by Wiimm (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

There are 3 controllers with joysticks that can be used by Mario Kart Wii:

  • The joystick of the Nunchuck.
  • The left joystick of the Classic Controller.
  • The left joystick of the GameCube Controller.

At each controller, Left and Right are used to define the driving direction, and Up and Down for the item throw direction.

All three controllers differ in the accuracy and value range:

Technical Values
Controller Data
type
Minimal
position1
Maximal
position1
Neutral
position2
Neutral
range2
Wii Remote and Nunchuk int16_t −25856 +26880 0 −5273 .. +5273
Classic Controller int16_t −512 +480 0 −100 .. +100
GCN Controller uint8_t 16 238 128 106 .. 150
Notes
1) Minimum and maximum positions are only an approximation and vary from controller to controller.
2) The neutral position is a target value. In fact, you should assume at least ±10% of the total area as a neutral position. Column neutral range reflects this recommendation.