X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fplat_pollux.c;h=18b8053192a4523ac76cc3bd5b0396f43b27912a;hp=cb7afef7815cff78820559d93f202ec9060f7287;hb=3968e69e7fa8f9cb0d44ac79477d5929b9649271;hpb=bcfc48e326fd502e77654330ce4b902e7db8c2dc diff --git a/frontend/plat_pollux.c b/frontend/plat_pollux.c index cb7afef7..18b80531 100644 --- a/frontend/plat_pollux.c +++ b/frontend/plat_pollux.c @@ -555,7 +555,7 @@ void plat_init(void) memset(fb_vaddrs[0], 0, FB_VRAM_SIZE); pollux_changemode(16, 0); - g_menuscreen_w = 320; + g_menuscreen_w = g_menuscreen_pp = 320; g_menuscreen_h = 240; g_menuscreen_ptr = fb_flip(); @@ -704,10 +704,15 @@ static int haptic_init(void) return 0; } -void plat_trigger_vibrate(int is_strong) +void plat_trigger_vibrate(int pad, int low, int high) { + int is_strong; int ret; + if (low == 0 && high == 0) + return; + is_strong = (high >= 0xf0); + if (hapticdev == -2) return; // it's broken if (hapticdev < 0) {