/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/keyboardmanager/common/InputInterface.h
23 строки
719 B
Clint Rutkas
[Keyboard Manager] Fix stuck modifiers and dropped key-to-text remaps (#48571)
25 июн 2026, 06:10
Не верифицирован
25 июн 2026, 06:10
a864d42
Код
Авторство
О чём код?
#pragma once #include <string> #include <vector> #include <Windows.h> namespace KeyboardManagerInput { // Interface used to wrap keyboard input library methods class InputInterface { public: // Function to simulate input. Returns false only when nothing could be injected // (the call was fully blocked); returns true on full or partial success. virtual bool SendVirtualInput(const std::vector<INPUT>& inputs) = 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; }; }