From e5fe37f08982585a53df77312574221b34cc404b Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 27 Oct 2016 19:44:48 -0400 Subject: [PATCH] Fixed 'joystick' input. --- OSBindings/Mac/Clock Signal/Documents/MachineDocument.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {