mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
* init RawInputDevice * static * handle input * replace keyboard hooks (ctrl, shift) * keep ctrl hook * spellcheck
18 lines
276 B
C++
18 lines
276 B
C++
#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);
|
|
};
|