PowerToys/src/modules/keyboardmanager/common/InputInterface.h

16 lines
459 B
C
Raw Normal View History

#pragma once
// 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;
// Function to get the foreground process name
virtual void GetForegroundProcess(_Out_ std::wstring& foregroundProcess) = 0;
};