mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
DolphinQt: Fix some warnings
This commit is contained in:
parent
6962d5bc52
commit
f908612452
4 changed files with 5 additions and 5 deletions
|
@ -268,7 +268,7 @@ void RenderWidget::PassEventToImGui(const QEvent* event)
|
|||
// The actual text input goes through AddInputCharactersUTF8().
|
||||
const QKeyEvent* key_event = static_cast<const QKeyEvent*>(event);
|
||||
const bool is_down = event->type() == QEvent::KeyPress;
|
||||
const int key = (key_event->key() & 0x1FF);
|
||||
const u32 key = static_cast<u32>(key_event->key() & 0x1FF);
|
||||
auto lock = g_renderer->GetImGuiLock();
|
||||
if (key < ArraySize(ImGui::GetIO().KeysDown))
|
||||
ImGui::GetIO().KeysDown[key] = is_down;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue