CoreHaptics is trash.

This commit is contained in:
Lior Halphon 2024-07-31 00:58:30 +03:00
parent 035291b955
commit 53fc5a74ed
1 changed files with 6 additions and 1 deletions

View File

@ -89,7 +89,12 @@
rumble = 0;
}
if (rumble == 0) {
[_rumblePlayer stopAtTime:0 error:nil];
@try {
/* Why must every method from this framework randomly throw exceptions whenever
anything remotely unusual happens? CoreHaptic sucks.*/
[_rumblePlayer stopAtTime:0 error:nil];
}
@catch (NSException *exception) {}
_rumblePlayer = nil;
_rumble = 0;
return;