X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=common%2Fmenu.c;h=359517a8d7dcf66f98ac1b1be491a8907b4a65c8;hb=367b6f1f939dcd7930d372aee0ca900b0b8790b1;hp=16d4342d4fc4a25b5d74bac064d96c4b0533ba62;hpb=3e85ebdd8598be8816138335483f7a774519e5f8;p=libpicofe.git diff --git a/common/menu.c b/common/menu.c index 16d4342..359517a 100644 --- a/common/menu.c +++ b/common/menu.c @@ -30,6 +30,24 @@ char menuErrorMsg[64] = { 0, }; +// PicoPad[] format: MXYZ SACB RLDU +me_bind_action me_ctrl_actions[12] = +{ + { "UP ", 0x001 }, + { "DOWN ", 0x002 }, + { "LEFT ", 0x004 }, + { "RIGHT ", 0x008 }, + { "A ", 0x040 }, + { "B ", 0x010 }, + { "C ", 0x020 }, + { "START ", 0x080 }, + { "MODE ", 0x800 }, + { "X ", 0x400 }, + { "Y ", 0x200 }, + { "Z ", 0x100 } +}; + + static unsigned char menu_font_data[10240]; static int menu_text_color = 0xffff; // default to white static int menu_sel_color = -1; // disabled