Fixed brake, a binary control, being actived if value > 0 with no deadzone
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10131 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
9c748575f6
commit
c672f9f99c
@ -157,7 +157,8 @@ void PlayerController::action(PlayerAction action, int value)
|
||||
break;
|
||||
case PA_BRAKE:
|
||||
m_prev_brake = value!=0;
|
||||
if(value)
|
||||
// let's consider below that to be a deadzone
|
||||
if(value > 32768/2)
|
||||
{
|
||||
m_controls->m_brake = true;
|
||||
m_controls->m_accel = 0.0f;
|
||||
|
Loading…
Reference in New Issue
Block a user