1 // vim:shiftwidth=2:expandtab
3 #define _GNU_SOURCE // for plat.c
11 #include "../common/common/input.c"
12 #include "../common/linux/plat.c"
13 #include "../common/linux/in_evdev.c"
32 int host_read_btns(void)
34 int actions[IN_BINDTYPE_COUNT] = { 0, };
37 host_actions(actions);
39 return actions[IN_BINDTYPE_PLAYER12];
42 void host_forced_exit(void)
44 // exit() might not be enough because loader and app data is out of sync,
45 // and other threads (which are really processes on this old glibc used)
46 // might not exit properly.
47 system("killall ginge_sloader");
49 system("killall -9 ginge_sloader");