From bfe3776914b88146c2931f7f37274c96aa77adcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Wed, 14 Feb 2018 14:09:44 +0100 Subject: [PATCH] Add switch -azerty and -qwerty --- main_bounce.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main_bounce.cpp b/main_bounce.cpp index 6fdad8e..58d022b 100644 --- a/main_bounce.cpp +++ b/main_bounce.cpp @@ -17,6 +17,10 @@ int main(int argc, char** argv) { for(int pos=1; pos < argc; ++pos) { if(strcmp(argv[pos], "-perlin") == 0) perlin = true; + if(strcmp(argv[pos], "-azerty") == 0) + set_key_mapping(KeyMappings::azerty()); + if(strcmp(argv[pos], "-qwerty") == 0) + set_key_mapping(KeyMappings::qwerty()); } // Last minute switch, this code is ugly, please close your eyes until