diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-18 11:38:51 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-18 11:38:51 +0400 |
commit | 4f19c1a995de507044d1b5ada7fb7398cdb32096 (patch) | |
tree | e46c13dd84a493177c80af0715f8f9b09c333943 /source/gameengine/GameLogic/SCA_JoystickSensor.cpp | |
parent | e56f71400060f10f73bed6b5c52fc537e5a0d617 (diff) |
spelling cleanup
Diffstat (limited to 'source/gameengine/GameLogic/SCA_JoystickSensor.cpp')
-rw-r--r-- | source/gameengine/GameLogic/SCA_JoystickSensor.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/gameengine/GameLogic/SCA_JoystickSensor.cpp b/source/gameengine/GameLogic/SCA_JoystickSensor.cpp index 3612115f90e..3f74b4cd807 100644 --- a/source/gameengine/GameLogic/SCA_JoystickSensor.cpp +++ b/source/gameengine/GameLogic/SCA_JoystickSensor.cpp @@ -109,7 +109,7 @@ bool SCA_JoystickSensor::Evaluate() bool result = false; bool reset = m_reset && m_level; - if(js==NULL) /* no joystick - dont do anything */ + if(js==NULL) /* no joystick - don't do anything */ return false; m_reset = false; @@ -129,7 +129,7 @@ bool SCA_JoystickSensor::Evaluate() with expect a zero index. */ - if (!js->IsTrigAxis() && !reset) /* No events from SDL? - dont bother */ + if (!js->IsTrigAxis() && !reset) /* No events from SDL? - don't bother */ return false; js->cSetPrecision(m_precision); @@ -159,8 +159,8 @@ bool SCA_JoystickSensor::Evaluate() } case KX_JOYSENSORMODE_AXIS_SINGLE: { - /* Like KX_JOYSENSORMODE_AXIS but dont pair up axis */ - if (!js->IsTrigAxis() && !reset) /* No events from SDL? - dont bother */ + /* Like KX_JOYSENSORMODE_AXIS but don't pair up axis */ + if (!js->IsTrigAxis() && !reset) /* No events from SDL? - don't bother */ return false; /* No need for 'm_bAllEvents' check here since were only checking 1 axis */ @@ -182,7 +182,7 @@ bool SCA_JoystickSensor::Evaluate() /* what is what! m_button = the actual button in question */ - if (!js->IsTrigButton() && !reset) /* No events from SDL? - dont bother */ + if (!js->IsTrigButton() && !reset) /* No events from SDL? - don't bother */ return false; if(( m_bAllEvents && js->aAnyButtonPressIsPositive()) || (!m_bAllEvents && js->aButtonPressIsPositive(m_button))) { @@ -203,7 +203,7 @@ bool SCA_JoystickSensor::Evaluate() direction= m_hatf -- max 12 */ - if (!js->IsTrigHat() && !reset) /* No events from SDL? - dont bother */ + if (!js->IsTrigHat() && !reset) /* No events from SDL? - don't bother */ return false; if((m_bAllEvents && js->GetHat(m_hat-1)) || js->aHatIsPositive(m_hat-1, m_hatf)) { |