gamepad live feedback overlay

This commit is contained in:
True Zhuanjia committed 2026-04-06 01:19:44 +08:00
1 parent 7f4108c4e3
commit 5af39e8fb6
19 files changed
+1583 -382

No files matched your search

+24
View File
@@ -41,6 +41,30 @@ import Foundation
}
return false
}
@objc static func isFirstLaunchGamepadOverlayFeature() -> Bool {
let key = "hasTouchedGamepadOverlayFeature20260405-1"
let defaults = UserDefaults.standard
let launchedBefore = defaults.bool(forKey: key)
if !launchedBefore {
defaults.set(true, forKey: key)
return true
}
return false
}
@objc static func gamepadOverlayFeatureTipTitle() -> String {
SwiftLocalizationHelper.localizedString(forKey: "Gamepad Overlay")
}
@objc static func gamepadOverlayFeatureTipMessage() -> String {
SwiftLocalizationHelper.localizedString(forKey: "gamepadOverlayFeatureTip")
}
@objc static func gamepadOverlayFeatureTipButtonTitle() -> String {
SwiftLocalizationHelper.localizedString(forKey: "Got it!")
}
@objc static func isIPhone() -> Bool {
return UIDevice.current.userInterfaceIdiom == .phone