From 1607745432f50099711d7aee355111111e66ff51 Mon Sep 17 00:00:00 2001 From: Branimir Karadžić Date: Sun, 5 Feb 2017 13:56:35 +0100 Subject: Update BGFX and BX (nw) --- 3rdparty/bgfx/examples/common/entry/input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '3rdparty/bgfx/examples/common/entry/input.cpp') diff --git a/3rdparty/bgfx/examples/common/entry/input.cpp b/3rdparty/bgfx/examples/common/entry/input.cpp index a7155b5d07a..697ef1e5e69 100644 --- a/3rdparty/bgfx/examples/common/entry/input.cpp +++ b/3rdparty/bgfx/examples/common/entry/input.cpp @@ -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; } -- cgit v1.2.3-70-g09d2