Avoid that wiimote events are handled as digital events (which means

that the actual steering value will be changed over time, not immediately,
resulting in a delay). Fixed by avoiding +-32767 as input, which indicates
a digital event. Note that the same problem likely exists for gamepads!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12543 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2013-03-07 13:06:47 +00:00
parent 62ea0bbbe0
commit 6c10c92838

View File

@@ -38,7 +38,7 @@ bool WiimoteManager::m_enabled = false;
/** Irrlicht device IDs for the wiimotes start at this value */
static const int WIIMOTE_START_IRR_ID = 32;
static const float JOYSTICK_ABS_MAX_ANGLE = 32767.0f;
static const float JOYSTICK_ABS_MAX_ANGLE = 32766.0f;
// ============================ Helper functions ============================
// -----------------------------------------------------------------------------