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:
@@ -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 ============================
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user