CToolMobile

Overview

Mobile platform detection and haptic feedback.

Functions

Name Description
runningOnMobile Returns true if running on iOS, Android, or if mimicMobile is enabled in CSettings.
isMimicMobile Returns true if UCSettings::mimicMobile is enabled.
playHaptic Trigger force feedback on the player controller.
if (runningOnMobile()) {
    playHaptic(myPawn);
}

bool mimic = isMimicMobile();