瀏覽代碼

input: fix Win32 build.

legacy
Sam Hocevar 5 年之前
父節點
當前提交
0d766ea9b9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/ui/d3d9-input.cpp

+ 1
- 1
src/ui/d3d9-input.cpp 查看文件

@@ -96,7 +96,7 @@ void D3d9Input::tick_game(float seconds)
if (XInputGetState(m_data->m_joysticks[i].m1, &state) != ERROR_SUCCESS)
continue;

auto *stick = m_data->m_joysticks[i].m2;
auto stick = m_data->m_joysticks[i].m2;
stick->internal_set_axis(input::axis::LeftX, state.Gamepad.sThumbLX / 32768.f);
stick->internal_set_axis(input::axis::LeftY, -state.Gamepad.sThumbLY / 32768.f);
stick->internal_set_axis(input::axis::RightX, state.Gamepad.sThumbRX / 32768.f);


Loading…
取消
儲存