Add switch -azerty and -qwerty
This commit is contained in:
parent
bb530a8302
commit
bfe3776914
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue