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

18 lines
498 B
C
Raw Normal View History

#pragma once
#include "windows.h"
#include <string>
// 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;
};