WIP Haptic feedback for buttons, taps and scrolls

Haptics in iOS require a second-generation or newer Taptic Engine (sorry iPhone 6s users). Also move gamepad configs to controlmap/gamepads (you'll see why if you open the Load menu in the custom controls vc)
This commit is contained in:
Eilionoir Tunnicliff committed 2023-03-16 20:11:29 -04:00
1 parent eef107e5fd
commit 100b3be62c
3 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -311,7 +311,7 @@ void generateAndSaveDefaultControl() {
}
void generateAndSaveDefaultControlForGamepad() {
NSString *gamepadPath = [NSString stringWithFormat:@"%s/controlmap/gamepad-default.json", getenv("POJAV_HOME")];
NSString *gamepadPath = [NSString stringWithFormat:@"%s/controlmap/gamepads/gamepad-default.json", getenv("POJAV_HOME")];
if ([NSFileManager.defaultManager fileExistsAtPath:gamepadPath]) {
return;
}
+2
View File
@@ -242,6 +242,8 @@ void init_setupCustomControls() {
NSString *controlPath = [@(getenv("POJAV_HOME")) stringByAppendingPathComponent:@"controlmap"];
[fm createDirectoryAtPath:controlPath withIntermediateDirectories:NO attributes:nil error:nil];
generateAndSaveDefaultControl();
NSString *gamepadControlPath = [controlPath stringByAppendingPathComponent:@"gamepads"];
[fm createDirectoryAtPath:gamepadControlPath withIntermediateDirectories:NO attributes:nil error:nil];
generateAndSaveDefaultControlForGamepad();
}
Binary file not shown.