summaryrefslogtreecommitdiff
path: root/Source/Android
diff options
context:
space:
mode:
authorSimonx22 <simon@oatmealdome.me>2025-11-18 16:11:11 -0500
committerSimonx22 <simon@oatmealdome.me>2025-11-22 11:06:15 -0500
commit01d2d0eea1511a19751e91e83d582a3a5d8989f6 (patch)
treebb7a227b46961fa70c089fb2616f406e1d53b480 /Source/Android
parent00959738fe72934e9de4e2404fb17ba3abaaebf1 (diff)
Android: Format ControllerInterface
Diffstat (limited to 'Source/Android')
-rw-r--r--Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/input/model/ControllerInterface.kt11
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/input/model/ControllerInterface.kt b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/input/model/ControllerInterface.kt
index 9cf9b0e7a7..360800d656 100644
--- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/input/model/ControllerInterface.kt
+++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/input/model/ControllerInterface.kt
@@ -81,9 +81,7 @@ object ControllerInterface {
}
private external fun dispatchSensorEventNative(
- deviceQualifier: String,
- axisName: String,
- value: Float
+ deviceQualifier: String, axisName: String, value: Float
): Boolean
/**
@@ -94,9 +92,7 @@ object ControllerInterface {
* @param suspended Whether the sensor is now suspended.
*/
external fun notifySensorSuspendedState(
- deviceQualifier: String,
- axisNames: Array<String>,
- suspended: Boolean
+ deviceQualifier: String, axisNames: Array<String>, suspended: Boolean
)
/**
@@ -177,8 +173,9 @@ object ControllerInterface {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
val vibratorManager = DolphinApplication.getAppContext()
.getSystemService(Context.VIBRATOR_MANAGER_SERVICE) as VibratorManager?
- if (vibratorManager != null)
+ if (vibratorManager != null) {
return DolphinVibratorManagerPassthrough(vibratorManager)
+ }
}
val vibrator = DolphinApplication.getAppContext()
.getSystemService(Context.VIBRATOR_SERVICE) as Vibrator