mirror of
https://github.com/waynebian01/Shigure.git
synced 2026-09-03 07:15:24 +08:00
- Removed the UnitSelector class from UI and added a new UnitSelector class in Modules. - Introduced RuntimeSessionCoordinator to manage runtime sessions, ensuring safe concurrent operations. - Created ShigureRuntimeFactory to handle the creation of ShigureRuntime instances. - Added WindowsTriggerKeyState and WindowsVirtualKeyMap for handling key states and virtual key mappings. - Implemented IKeymapResolver interface for key mapping resolution. - Established runtime dependencies with interfaces for screen scanning, state building, logic evaluation, and key output.
9 lines
263 B
C#
9 lines
263 B
C#
namespace Shigure;
|
|
|
|
internal sealed class WindowsTriggerKeyState : ITriggerKeyState
|
|
{
|
|
public int? ResolveVirtualKey(string keyName) => WindowsVirtualKeyMap.Resolve(keyName);
|
|
|
|
public bool IsPressed(int virtualKey) => NativeMethods.IsKeyDown(virtualKey);
|
|
}
|