X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Flinux%2Fgp2x.c;h=ef21a675533f7700dc2e8a41eead1d3c20bf4e7d;hb=efcba75f8a730340df6c1b679a207723f98d1ee6;hp=3b43c3d37b690f89d1a85597ff2514002544048a;hpb=69996cb7c62468cd97842e35bdd2b74006a28dba;p=picodrive.git diff --git a/platform/linux/gp2x.c b/platform/linux/gp2x.c index 3b43c3d..ef21a67 100644 --- a/platform/linux/gp2x.c +++ b/platform/linux/gp2x.c @@ -30,6 +30,7 @@ static const char *verstring = "PicoDrive " VERSION; // dummies char *ext_menu = 0, *ext_state = 0; +int mix_32_to_16l_level; /* gtk */ struct gtk_global_struct @@ -70,6 +71,11 @@ static gint key_press_event (GtkWidget *widget, GdkEventKey *event) case 0x19: current_keys |= GP2X_VOL_UP;break; // w case 0x2d: log_io_clear(); break; // k case 0x2e: log_io_dump(); break; // l + case 0x17: { // tab + extern int PicoReset(void); + PicoReset(); + break; + } } return 0; @@ -362,6 +368,11 @@ unsigned long gp2x_joystick_read(int allow_usb_joy) return value; } +int gp2x_touchpad_read(int *x, int *y) +{ + return -1; +} + /* 940 */ int crashed_940 = 0; void Pause940(int yes) @@ -428,5 +439,13 @@ void spend_cycles(int c) usleep(c/200); } +/* lprintf */ +void lprintf(const char *fmt, ...) +{ + va_list vl; + va_start(vl, fmt); + vprintf(fmt, vl); + va_end(vl); +}