PowerToys/src/modules/keyboardmanager/dll/Input.h

18 lines
489 B
C
Raw Normal View History

#pragma once
#include <keyboardmanager/common/InputInterface.h>
// Class used to wrap keyboard input library methods
class Input :
public InputInterface
{
public:
// Function to simulate input
UINT SendVirtualInput(UINT cInputs, LPINPUT pInputs, int cbSize);
// Function to get the state of a particular key
bool GetVirtualKeyState(int key);
// Function to get the foreground process name
void GetForegroundProcess(_Out_ std::wstring& foregroundProcess);
};