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:
1 parent
eef107e5fd
commit
100b3be62c
3 files changed
+3
-1
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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.
Reference in new issue
Block a user