X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=maemo%2Fhildon.c;h=342ac1950cd7ed9e6b19a80b881c9477b33783bf;hp=df42a90ae6b2f4c824298bf9cd11afb943a9ff6a;hb=2f24625423d65f64e835905223b61352233bd111;hpb=54b4a001cf0b0f165a59b727c4b201226eda014c diff --git a/maemo/hildon.c b/maemo/hildon.c index df42a90a..342ac195 100644 --- a/maemo/hildon.c +++ b/maemo/hildon.c @@ -5,6 +5,7 @@ #include #include #include "plugin_lib.h" +#include "main.h" #include "../libpcsxcore/psemu_plugin_defs.h" #define X_RES 800 @@ -80,10 +81,12 @@ window_key_proxy(GtkWidget *widget, psxkey2 = DKEY_RIGHT; break; case 19: - //SaveState(cfile); + if (event->type == GDK_KEY_PRESS) + emu_set_action(SACTION_SAVE_STATE); return; case 20: - //LoadState(cfile); + if (event->type == GDK_KEY_PRESS) + emu_set_action(SACTION_LOAD_STATE); return; } @@ -98,6 +101,8 @@ window_key_proxy(GtkWidget *widget, in_keystate &= ~(1 << psxkey1); if (psxkey2 >= 0) in_keystate &= ~(1 << psxkey2); + + emu_set_action(SACTION_NONE); } } @@ -148,6 +153,10 @@ void maemo_init(int *argc, char ***argv) gtk_widget_show_all (GTK_WIDGET (window)); } +void menu_loop(void) +{ +} + void *pl_fbdev_set_mode(int w, int h, int bpp) { if (w <= 0 || h <= 0) @@ -202,6 +211,16 @@ static void pl_get_layer_pos(int *x, int *y, int *w, int *h) *h = 640; } +void *pl_prepare_screenshot(int *w, int *h, int *bpp) +{ + return NULL; +} + +int writepng() +{ + return -1; +} + extern int UseFrameSkip; // hmh const struct rearmed_cbs pl_rearmed_cbs = {