From e1dc3b1915f180ba4d34056d4f9596ac7cf47ff5 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 2 Nov 2019 21:38:57 -0400 Subject: [PATCH] Reverses mouse buttons. So I can now navigate the disk-less GEM desktop and click on things. --- Machines/AtariST/IntelligentKeyboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Machines/AtariST/IntelligentKeyboard.cpp b/Machines/AtariST/IntelligentKeyboard.cpp index fdf9cbaf0..95c77c94d 100644 --- a/Machines/AtariST/IntelligentKeyboard.cpp +++ b/Machines/AtariST/IntelligentKeyboard.cpp @@ -237,7 +237,7 @@ int IntelligentKeyboard::get_number_of_buttons() { } void IntelligentKeyboard::set_button_pressed(int index, bool is_pressed) { - const auto mask = 1 << index; + const auto mask = 1 << (index ^ 1); // The primary button is b1; the secondary is b0. if(is_pressed) { mouse_button_state_ |= mask; } else {