X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=linux%2Fio.c;fp=linux%2Fio.c;h=2767e68136fa6d1586a7ae0dc89032536e5c803c;hb=c64c8d0ec9d4f52fd65df1d3bce864b7a6152033;hp=1122e8a77a0a49c36623de0b14f9a57100e112c6;hpb=f35e50efad7436d3fe2b50a5aa9e78d47868de0e;p=libpicofe.git diff --git a/linux/io.c b/linux/io.c index 1122e8a..2767e68 100644 --- a/linux/io.c +++ b/linux/io.c @@ -5,6 +5,7 @@ #include "../common/emu.h" #include "../common/menu.h" #include "../common/plat.h" +#include "../common/input.h" #include "sndout_oss.h" #include "version.h" @@ -363,3 +364,20 @@ void mp3_update(int *buffer, int length, int stereo) { } +#include + +struct in_default_bind in_evdev_defbinds[] = +{ + /* MXYZ SACB RLDU */ + { KEY_UP, IN_BINDTYPE_PLAYER12, 0 }, + { KEY_DOWN, IN_BINDTYPE_PLAYER12, 1 }, + { KEY_LEFT, IN_BINDTYPE_PLAYER12, 2 }, + { KEY_RIGHT, IN_BINDTYPE_PLAYER12, 3 }, + { KEY_S, IN_BINDTYPE_PLAYER12, 4 }, /* B */ + { KEY_D, IN_BINDTYPE_PLAYER12, 5 }, /* C */ + { KEY_A, IN_BINDTYPE_PLAYER12, 6 }, /* A */ + { KEY_ENTER, IN_BINDTYPE_PLAYER12, 7 }, + { KEY_BACKSLASH, IN_BINDTYPE_EMU, PEVB_MENU }, + { 0, 0, 0 } +}; +