X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=maemo%2Fhildon.c;h=7e9cd9fe8b00d49f4fe64cf95466de8a11804c6c;hp=4bdd1de15468f31e01c618b59771272281c30219;hb=09159d99cd07a084d8643f87c6c23e86c79060ff;hpb=84b0e44599886bac368fa48cd82979019adb904d diff --git a/maemo/hildon.c b/maemo/hildon.c index 4bdd1de1..7e9cd9fe 100644 --- a/maemo/hildon.c +++ b/maemo/hildon.c @@ -772,15 +772,19 @@ void *plat_gvideo_flip(void) } } + return pl_vout_buf; +} + +// for frontend/plugin_lib.c +void update_input(void) +{ if (g_maemo_opts & 8) maemo_x11_update_keys(); - else{ - //process GTK+ events - while (gtk_events_pending()) - gtk_main_iteration(); + else { + /* process GTK+ events */ + while (gtk_events_pending()) + gtk_main_iteration(); } - - return pl_vout_buf; } int omap_enable_layer(int enabled) @@ -801,7 +805,7 @@ void plat_step_volume(int is_up) { } -void plat_trigger_vibrate(int is_strong) +void plat_trigger_vibrate(int pad, int low, int high) { const int vDuration = 10; @@ -813,7 +817,8 @@ void plat_trigger_vibrate(int is_strong) "req_start_manual_vibration"); if (msg) { dbus_message_iter_init_append(msg, &args); - int speed = is_strong ? 200 : 150; + // FIXME: somebody with hardware should tune this + int speed = high; // is_strong ? 200 : 150; int duration = vDuration; if (dbus_message_iter_append_basic(&args, DBUS_TYPE_INT32, &speed)) { if (dbus_message_iter_append_basic(&args, DBUS_TYPE_INT32, &duration)) {