summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/common/entry/entry_windows.cpp
diff options
context:
space:
mode:
author Branimir Karadžić <branimirkaradzic@gmail.com>2017-02-05 13:56:35 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2017-02-05 13:56:35 +0100
commit1607745432f50099711d7aee355111111e66ff51 (patch)
treec4eaec8008f6e0283ca652cdffb55a34eca9b9bb /3rdparty/bgfx/examples/common/entry/entry_windows.cpp
parent193e8c8a89a4be5c63909cdbbcca4d9d6f8fee02 (diff)
Update BGFX and BX (nw)
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])
{