Can be controlled with numbers

8 : UP, 6 : RIGHT, 2 : DOWN, 4 : LEFT
Nothing too difficult
Can be useful for broken devices, or hipsters
This commit is contained in:
Geoffrey Frogeye 2014-04-08 21:48:53 +02:00
parent 2f2a02f4f8
commit 3bd4ed2edc

4
2048.c
View file

@ -531,15 +531,19 @@ int AddIn_main(int isAppli, unsigned short OptionNum) {
GetKey(&key);
switch (key) {
case KEY_CTRL_UP:
case KEY_CHAR_8:
Game_move(0);
break;
case KEY_CTRL_RIGHT:
case KEY_CHAR_6:
Game_move(1);
break;
case KEY_CTRL_DOWN:
case KEY_CHAR_2:
Game_move(2);
break;
case KEY_CTRL_LEFT:
case KEY_CHAR_4:
Game_move(3);
break;
case KEY_CTRL_DEL: