imgui: don't send X button events to avoid the nav window popping up
Issue #1034
This commit is contained in:
parent
92a1c1891b
commit
22d228c1b0
|
@ -387,7 +387,8 @@ static void gui_newFrame()
|
|||
io.AddMouseButtonEvent(ImGuiMouseButton_Middle, (mouseButtons & (1 << 2)) != 0);
|
||||
io.AddMouseButtonEvent(3, (mouseButtons & (1 << 3)) != 0);
|
||||
|
||||
io.AddKeyEvent(ImGuiKey_GamepadFaceLeft, ((kcode[0] & DC_BTN_X) == 0));
|
||||
// shows a popup navigation window even in game because of the OSD
|
||||
//io.AddKeyEvent(ImGuiKey_GamepadFaceLeft, ((kcode[0] & DC_BTN_X) == 0));
|
||||
io.AddKeyEvent(ImGuiKey_GamepadFaceRight, ((kcode[0] & DC_BTN_B) == 0));
|
||||
io.AddKeyEvent(ImGuiKey_GamepadFaceUp, ((kcode[0] & DC_BTN_Y) == 0));
|
||||
io.AddKeyEvent(ImGuiKey_GamepadFaceDown, ((kcode[0] & DC_BTN_A) == 0));
|
||||
|
|
Loading…
Reference in New Issue