input-capture: protocol §10.4, README rewrite, TODO §4 ticked
§10.4 records ten things the lane established from the Windows source (one-sided hotkey matching, the three meanings of Md.WheelDelta, the virtual cursor and its primary+-1 clamp, the unconditional relative bias, SwitchLocation, synthesised LLKHF bits, the eleven ReleaseAllKeys VKs, the two input counters, monitor enumeration) plus the macOS device masks. The README's Assumptions and Handshakes now describe what shipped, with the nine decisions and three deliberate non-ports in the work log. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This commit is contained in:
1 parent
59fc7a3162
commit
fd1ceeac08
5 files changed
+449
-117
No files matched your search
@@ -119,8 +119,7 @@ public struct ModifierState: Sendable, Equatable {
|
||||
public var shift: Bool
|
||||
|
||||
/// All modifiers up.
|
||||
public init(command: Bool = false, control: Bool = false, option: Bool = false, shift: Bool = false)
|
||||
{
|
||||
public init(command: Bool = false, control: Bool = false, option: Bool = false, shift: Bool = false) {
|
||||
self.command = command
|
||||
self.control = control
|
||||
self.option = option
|
||||
@@ -145,7 +144,8 @@ public struct Hotkey: Sendable, Equatable {
|
||||
public var shift: Bool
|
||||
|
||||
/// A hotkey. `vk == 0` disables it, as an empty `HotkeySettings` does.
|
||||
public init(vk: Int32, command: Bool = false, control: Bool = false, option: Bool = false,
|
||||
public init(
|
||||
vk: Int32, command: Bool = false, control: Bool = false, option: Bool = false,
|
||||
shift: Bool = false
|
||||
) {
|
||||
self.vk = vk
|
||||
|
||||
Reference in new issue
Block a user