瀏覽代碼

fixed a minor typo in the input tutorial

legacy
Benlitz benlitz 11 年之前
父節點
當前提交
f7da613a70
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      demos/tutorial/07_input.cpp

+ 1
- 1
demos/tutorial/07_input.cpp 查看文件

@@ -104,7 +104,7 @@ public:
}
if (lol::abs(controller->GetAxis(AXIS_PITCH).GetValue()) > 0.2f)
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;

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


Loading…
取消
儲存