diff --git a/OSBindings/Mac/Clock Signal/Documents/MachineDocument.swift b/OSBindings/Mac/Clock Signal/Documents/MachineDocument.swift index 193c7bc31..0d946e3c2 100644 --- a/OSBindings/Mac/Clock Signal/Documents/MachineDocument.swift +++ b/OSBindings/Mac/Clock Signal/Documents/MachineDocument.swift @@ -198,12 +198,12 @@ class MachineDocument: func keyDown(_ event: NSEvent) { self.withKeyboardMachine { $0.setKey(event.keyCode, isPressed: true) } - self.withJoystickMachine { sendJoystickEvent($0, keyCode: event.keyCode, isPressed: false) } + self.withJoystickMachine { sendJoystickEvent($0, keyCode: event.keyCode, isPressed: true) } } func keyUp(_ event: NSEvent) { self.withKeyboardMachine { $0.setKey(event.keyCode, isPressed: false) } - self.withJoystickMachine { sendJoystickEvent($0, keyCode: event.keyCode, isPressed: true) } + self.withJoystickMachine { sendJoystickEvent($0, keyCode: event.keyCode, isPressed: false) } } func flagsChanged(_ newModifiers: NSEvent) {