mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-30 14:17:56 +08:00
6a9badd31b
* Remove WinUI include in KeyboardManagerState.h * Changed include steps * Clean up headers in KeyboardManagerUI except XamlBridge.h * Cleaned up headers in KeyboardManager common and test * Cleaned up headers in KeyboardManager project * Removed headers from XamlBridge * Removed some headers from kbm common pch * Added MP flag to reduce build time * Added missing include
16 lines
459 B
C++
16 lines
459 B
C++
#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;
|
|
};
|