[ImGui] Use new key API

This commit is contained in:
Joel Linn
2022-11-20 19:45:29 +01:00
committed by Rick Gibbed
parent b641e39c4d
commit da9c90835b
2 changed files with 34 additions and 28 deletions

View File

@@ -23,6 +23,7 @@
struct ImDrawData;
struct ImGuiContext;
struct ImGuiIO;
enum ImGuiKey : int;
namespace xe {
namespace ui {
@@ -77,6 +78,8 @@ class ImGuiDrawer : public WindowInputListener, public UIDrawer {
bool IsDrawingDialogs() const { return dialog_loop_next_index_ != SIZE_MAX; }
void DetachIfLastDialogRemoved();
std::optional<ImGuiKey> VirtualKeyToImGuiKey(VirtualKey vkey);
Window* window_;
size_t z_order_;