summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/common/entry/entry_windows.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/examples/common/entry/entry_windows.cpp')
-rw-r--r--3rdparty/bgfx/examples/common/entry/entry_windows.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/3rdparty/bgfx/examples/common/entry/entry_windows.cpp b/3rdparty/bgfx/examples/common/entry/entry_windows.cpp
index 5be017bce3b..ca38c9208c3 100644
--- a/3rdparty/bgfx/examples/common/entry/entry_windows.cpp
+++ b/3rdparty/bgfx/examples/common/entry/entry_windows.cpp
@@ -143,13 +143,14 @@ namespace entry
}
WindowHandle defaultWindow = { 0 };
- GamepadHandle handle = { 0 };
- for (uint32_t ii = 0; ii < BX_COUNTOF(m_state); ++ii)
+ for (uint16_t ii = 0; ii < BX_COUNTOF(m_state); ++ii)
{
XINPUT_STATE state;
DWORD result = XInputGetState(ii, &state);
+ GamepadHandle handle = { ii };
+
bool connected = ERROR_SUCCESS == result;
if (connected != m_connected[ii])
{