Browse Source

fixed a minor typo in the input tutorial

legacy
Benlitz benlitz 11 years ago
parent
commit
f7da613a70
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      demos/tutorial/07_input.cpp

+ 1
- 1
demos/tutorial/07_input.cpp View File

@@ -104,7 +104,7 @@ public:
} }
if (lol::abs(controller->GetAxis(AXIS_PITCH).GetValue()) > 0.2f) if (lol::abs(controller->GetAxis(AXIS_PITCH).GetValue()) > 0.2f)
m_pitch_angle -= controller->GetAxis(AXIS_PITCH).GetValue() * seconds * 100; m_pitch_angle -= controller->GetAxis(AXIS_PITCH).GetValue() * seconds * 100;
if (lol::abs(controller->GetAxis(AXIS_YAW).GetValue()) > 1.0f)
if (lol::abs(controller->GetAxis(AXIS_YAW).GetValue()) > 0.2f)
m_yaw_angle += controller->GetAxis(AXIS_YAW).GetValue() * seconds * 100; m_yaw_angle += controller->GetAxis(AXIS_YAW).GetValue() * seconds * 100;


InputDevice* mouse = InputDevice::Get("Mouse"); InputDevice* mouse = InputDevice::Get("Mouse");


Loading…
Cancel
Save