Disable vibration for expedited review

This commit is contained in:
Cameron Gutman
2019-05-27 10:12:02 -07:00
parent 3f709b616b
commit 8bb49ada11
+2
View File
@@ -46,6 +46,7 @@
-(void) rumbleController: (Controller*)controller -(void) rumbleController: (Controller*)controller
{ {
#if 0
// Only vibrate if the amplitude is large enough // Only vibrate if the amplitude is large enough
if (controller.lowFreqMotor > 0x5000 || controller.highFreqMotor > 0x5000) { if (controller.lowFreqMotor > 0x5000 || controller.highFreqMotor > 0x5000) {
// If the gamepad is nil (on-screen controls) or it's attached to the device, // If the gamepad is nil (on-screen controls) or it's attached to the device,
@@ -54,6 +55,7 @@
AudioServicesPlayAlertSound(kSystemSoundID_Vibrate); AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);
} }
} }
#endif
} }
-(void) rumble:(unsigned short)controllerNumber lowFreqMotor:(unsigned short)lowFreqMotor highFreqMotor:(unsigned short)highFreqMotor -(void) rumble:(unsigned short)controllerNumber lowFreqMotor:(unsigned short)lowFreqMotor highFreqMotor:(unsigned short)highFreqMotor