From 2db30a91c67cae7b8471009a511ad0e9564c4067 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 1 Mar 2020 23:11:14 -0500 Subject: [PATCH] 'Corrects' but disables SDL logical keyboard entry. I'm just not sure that SDL supports what I want. --- .../xcschemes/Clock Signal Kiosk.xcscheme | 10 +++++++++- .../xcshareddata/xcschemes/Clock Signal.xcscheme | 2 +- OSBindings/SDL/main.cpp | 15 ++++++++++----- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/OSBindings/Mac/Clock Signal.xcodeproj/xcshareddata/xcschemes/Clock Signal Kiosk.xcscheme b/OSBindings/Mac/Clock Signal.xcodeproj/xcshareddata/xcschemes/Clock Signal Kiosk.xcscheme index 3fddce824..4cd4a9880 100644 --- a/OSBindings/Mac/Clock Signal.xcodeproj/xcshareddata/xcschemes/Clock Signal Kiosk.xcscheme +++ b/OSBindings/Mac/Clock Signal.xcodeproj/xcshareddata/xcschemes/Clock Signal Kiosk.xcscheme @@ -31,7 +31,7 @@ + + + + = 0) key_value = key_name[0]; + if(key_name[0] >= 0 && key_name[1] == 0) key_value = key_name[0]; // If a logical mapping was selected and a symbol was found, type it. if(logical_keyboard && key_value != '\0' && keyboard_machine->can_type(key_value)) { - char string[] = { key_value, 0 }; - keyboard_machine->type_string(string); + if(is_pressed) { + char string[] = { key_value, 0 }; + keyboard_machine->type_string(string); + } break; }