X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2Fin_gp2x.c;h=4599a3ed729e5d54eb0ef4096178a2852a913747;hb=c54d04fd84f59c60c6ecdbd2502fbda5de735b4b;hp=196f1218ece8037c387fc159aacc4f05c5ec670c;hpb=e99d80480196f551f7e6c06deae3750de19b4c0e;p=libpicofe.git diff --git a/gp2x/in_gp2x.c b/gp2x/in_gp2x.c index 196f121..4599a3e 100644 --- a/gp2x/in_gp2x.c +++ b/gp2x/in_gp2x.c @@ -1,3 +1,14 @@ +/* + * (C) Gražvydas "notaz" Ignotas, 2006-2012 + * + * This work is licensed under the terms of any of these licenses + * (at your option): + * - GNU GPL, version 2 or later. + * - GNU LGPL, version 2.1 or later. + * - MAME license. + * See the COPYING file in the top-level directory. + */ + #include #include #include @@ -6,13 +17,13 @@ #include #include -#include "../common/input.h" +#include "../input.h" #include "in_gp2x.h" #define IN_GP2X_PREFIX "gp2x:" #define IN_GP2X_NBUTTONS 32 -/* note: in_gp2x hadles combos (if 2 btns have the same bind, +/* note: in_gp2x handles combos (if 2 btns have the same bind, * both must be pressed for action to happen) */ static int in_gp2x_combo_keys = 0; static int in_gp2x_combo_acts = 0; @@ -197,7 +208,7 @@ static const struct { #define KEY_PBTN_MAP_SIZE (sizeof(key_pbtn_map) / sizeof(key_pbtn_map[0])) -static int in_gp2x_menu_translate(void *drv_data, int keycode) +static int in_gp2x_menu_translate(void *drv_data, int keycode, char *charcode) { int i; if (keycode < 0)