mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-20 14:57:55 +08:00
1533c9315f
* Enable app specific shortcut remapping * Fixed lowercase function call * Add test file * Moved GetForegroundProcess to II and added tests * Fixed runtime error while testing due to heap allocation across dll boundary * Renamed function * Remove unused code * Changed process checking step to include substrings * Changed back to exact match included match without file extension
18 lines
489 B
C++
18 lines
489 B
C++
#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);
|
|
};
|