Applied other patch by Hilton Medeiros
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4936 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
4349a8961b
commit
228808f981
@ -205,8 +205,11 @@ void InputManager::inputSensing(Input::InputType type, int deviceID, int btnID,
|
||||
std::cout << "%% storing new gamepad button binding value=" << value <<
|
||||
" deviceID=" << deviceID << " btnID=" << btnID << "\n";
|
||||
|
||||
OptionsScreenInput::getInstance()->gotSensedInput(m_sensed_input);
|
||||
return;
|
||||
if (abs(value) > Input::MAX_VALUE/2.0f)
|
||||
{
|
||||
OptionsScreenInput::getInstance()->gotSensedInput(m_sensed_input);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if( type == Input::IT_STICKMOTION )
|
||||
@ -461,11 +464,6 @@ EventPropagation InputManager::input(const SEvent& event)
|
||||
{
|
||||
int value = event.JoystickEvent.Axis[axis_id];
|
||||
|
||||
#ifdef __APPLE__
|
||||
// work around irrLicht bug. FIXME - get it fixed and remove this
|
||||
if(value == -32768) continue; // ignore bogus values given by irrlicht
|
||||
#endif
|
||||
|
||||
if (UserConfigParams::m_gamepad_debug)
|
||||
{
|
||||
printf("axis motion: gamepad_id=%d axis=%d value=%d\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user