mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Cleanup.
This commit is contained in:
@@ -143,13 +143,14 @@ namespace entry
|
||||
}
|
||||
|
||||
WindowHandle defaultWindow = { 0 };
|
||||
GamepadHandle handle = { 0 };
|
||||
|
||||
for (uint32_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])
|
||||
{
|
||||
|
||||
@@ -85,7 +85,7 @@ struct InputKeyboard
|
||||
static uint32_t encodeKeyState(uint8_t _modifiers, bool _down)
|
||||
{
|
||||
uint32_t state = 0;
|
||||
state |= uint32_t(_modifiers)<<16;
|
||||
state |= uint32_t(_down ? _modifiers : 0)<<16;
|
||||
state |= uint32_t(_down)<<8;
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user