mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
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);
|
||
|
|
};
|