mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
NoGUI: Linux compile fix
This commit is contained in:
parent
97cf3f770e
commit
1c1abee61a
|
@ -6,7 +6,7 @@
|
|||
#pragma once
|
||||
#include "../types.h"
|
||||
#include "vulkan_loader.h"
|
||||
#include <functional>
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
|
||||
namespace Vulkan {
|
||||
|
|
|
@ -258,13 +258,13 @@ static const std::map<int, const char*> s_evdev_key_names = {{KEY_ESC, "Escape"}
|
|||
{KEY_RFKILL, "Rfkill"},
|
||||
{KEY_MICMUTE, "Micmute"}};
|
||||
|
||||
const char* GetKeyName(int key)
|
||||
static const char* GetKeyName(int key)
|
||||
{
|
||||
const auto it = s_evdev_key_names.find(key);
|
||||
return it == s_evdev_key_names.end() ? nullptr : it->second;
|
||||
}
|
||||
|
||||
std::optional<int> GetKeyCodeForName(const std::string_view key_name)
|
||||
static std::optional<int> GetKeyCodeForName(const std::string_view key_name)
|
||||
{
|
||||
for (const auto& it : s_evdev_key_names)
|
||||
{
|
||||
|
|
|
@ -164,7 +164,7 @@ void VTYHostInterface::PollEvDevKeyboards()
|
|||
if (static_cast<unsigned>(code) < countof(ImGuiIO::KeysDown))
|
||||
ImGui::GetIO().KeysDown[code] = pressed;
|
||||
|
||||
HandleHostKeyEvent(code, pressed);
|
||||
HandleHostKeyEvent(code, 0, pressed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue