[FancyZones]Use RawInput to detect Shift key, fix locking out Shift key (#32116)

* init RawInputDevice

* static

* handle input

* replace keyboard hooks (ctrl, shift)

* keep ctrl hook

* spellcheck
This commit is contained in:
Seraphima Zykova
2024-03-28 17:53:17 +01:00
committed by GitHub
parent baba63542d
commit 6333e3157e
7 changed files with 119 additions and 29 deletions

View File

@@ -0,0 +1,17 @@
#pragma once
class KeyboardInput
{
public:
struct Key
{
USHORT vkKey{};
bool pressed{};
};
KeyboardInput() = default;
~KeyboardInput() = default;
static bool Initialize(HWND window);
static std::optional<Key> OnKeyboardInput(HRAWINPUT hInput);
};