From bb15a257c8fcabd036384a9564e2f3d9166d97fe Mon Sep 17 00:00:00 2001 From: antongit Date: Tue, 4 Jun 2024 13:45:06 +0200 Subject: [PATCH] [ImGui] Added Keyboard Queries. Adds to #39. --- VL.ImGui/help/Interaction/HowTo Keyboard.vl | 154 ++++++++++++++ .../HowTo Check If Window Is Hovered.vl | 196 ++++++++++-------- VL.ImGui/src/Helper/KeyboardHelper.cs | 141 +++++++++++++ VL.ImGui/src/Helper/RenderHelper.cs | 131 +----------- .../src/Widgets/Queries/Keyboard/IsKeyDown.cs | 21 ++ .../Widgets/Queries/Keyboard/IsKeyPressed.cs | 23 ++ .../Widgets/Queries/Keyboard/IsKeyReleased.cs | 21 ++ 7 files changed, 466 insertions(+), 221 deletions(-) create mode 100644 VL.ImGui/help/Interaction/HowTo Keyboard.vl create mode 100644 VL.ImGui/src/Helper/KeyboardHelper.cs create mode 100644 VL.ImGui/src/Widgets/Queries/Keyboard/IsKeyDown.cs create mode 100644 VL.ImGui/src/Widgets/Queries/Keyboard/IsKeyPressed.cs create mode 100644 VL.ImGui/src/Widgets/Queries/Keyboard/IsKeyReleased.cs diff --git a/VL.ImGui/help/Interaction/HowTo Keyboard.vl b/VL.ImGui/help/Interaction/HowTo Keyboard.vl new file mode 100644 index 00000000..3fc80289 --- /dev/null +++ b/VL.ImGui/help/Interaction/HowTo Keyboard.vl @@ -0,0 +1,154 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + High + + + + + + + + + + + + + High + + + + + + + + + + + + + + + + + + + Toggle + + + + + + + + High + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/VL.ImGui/help/Queries/HowTo Check If Window Is Hovered.vl b/VL.ImGui/help/Queries/HowTo Check If Window Is Hovered.vl index 7312cfbd..f0937597 100644 --- a/VL.ImGui/help/Queries/HowTo Check If Window Is Hovered.vl +++ b/VL.ImGui/help/Queries/HowTo Check If Window Is Hovered.vl @@ -1,5 +1,5 @@  - +