X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fplat_pollux.c;fp=frontend%2Fplat_pollux.c;h=33e94178eda709f56bfcdd8dbf3d5963d881e088;hp=cb7afef7815cff78820559d93f202ec9060f7287;hb=d71c709541218f67ab32229b03307b045a8ed6cb;hpb=4e47706596441172d1cc3f203b8baa398cea3023 diff --git a/frontend/plat_pollux.c b/frontend/plat_pollux.c index cb7afef7..33e94178 100644 --- a/frontend/plat_pollux.c +++ b/frontend/plat_pollux.c @@ -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) {