Add switch -azerty and -qwerty

This commit is contained in:
Théophile Bastian 2018-02-14 14:09:44 +01:00
parent bb530a8302
commit bfe3776914

View file

@ -17,6 +17,10 @@ int main(int argc, char** argv) {
for(int pos=1; pos < argc; ++pos) { for(int pos=1; pos < argc; ++pos) {
if(strcmp(argv[pos], "-perlin") == 0) if(strcmp(argv[pos], "-perlin") == 0)
perlin = true; 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 // Last minute switch, this code is ugly, please close your eyes until