Add rumble support

This commit is contained in:
Cameron Gutman
2019-02-11 19:22:18 -08:00
parent 918e1248f2
commit 335b5aef1f
8 changed files with 79 additions and 2 deletions

View File

@@ -263,6 +263,12 @@
Log(LOG_I, @"Display transient message: %s", message);
}
- (void)rumble:(unsigned short)controllerNumber lowFreqMotor:(unsigned short)lowFreqMotor highFreqMotor:(unsigned short)highFreqMotor {
Log(LOG_I, @"Rumble on gamepad %d: %04x %04x", controllerNumber, lowFreqMotor, highFreqMotor);
[_controllerSupport rumble:controllerNumber lowFreqMotor:lowFreqMotor highFreqMotor:highFreqMotor];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];