mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 10:16:24 +02:00
14 lines
346 B
C
14 lines
346 B
C
|
|
#pragma once
|
||
|
|
#include "windows.h"
|
||
|
|
|
||
|
|
// Interface used to wrap keyboard input library methods
|
||
|
|
class InputInterface
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
// Function to simulate input
|
||
|
|
virtual UINT SendVirtualInput(UINT cInputs, LPINPUT pInputs, int cbSize) = 0;
|
||
|
|
|
||
|
|
// Function to get the state of a particular key
|
||
|
|
virtual bool GetVirtualKeyState(int key) = 0;
|
||
|
|
};
|