mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-16 04:09:39 +00:00
Android: Format ControllerInterface
This commit is contained in:
parent
00959738fe
commit
01d2d0eea1
@ -81,9 +81,7 @@ object ControllerInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private external fun dispatchSensorEventNative(
|
private external fun dispatchSensorEventNative(
|
||||||
deviceQualifier: String,
|
deviceQualifier: String, axisName: String, value: Float
|
||||||
axisName: String,
|
|
||||||
value: Float
|
|
||||||
): Boolean
|
): Boolean
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -94,9 +92,7 @@ object ControllerInterface {
|
|||||||
* @param suspended Whether the sensor is now suspended.
|
* @param suspended Whether the sensor is now suspended.
|
||||||
*/
|
*/
|
||||||
external fun notifySensorSuspendedState(
|
external fun notifySensorSuspendedState(
|
||||||
deviceQualifier: String,
|
deviceQualifier: String, axisNames: Array<String>, suspended: Boolean
|
||||||
axisNames: Array<String>,
|
|
||||||
suspended: Boolean
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -177,8 +173,9 @@ object ControllerInterface {
|
|||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||||
val vibratorManager = DolphinApplication.getAppContext()
|
val vibratorManager = DolphinApplication.getAppContext()
|
||||||
.getSystemService(Context.VIBRATOR_MANAGER_SERVICE) as VibratorManager?
|
.getSystemService(Context.VIBRATOR_MANAGER_SERVICE) as VibratorManager?
|
||||||
if (vibratorManager != null)
|
if (vibratorManager != null) {
|
||||||
return DolphinVibratorManagerPassthrough(vibratorManager)
|
return DolphinVibratorManagerPassthrough(vibratorManager)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
val vibrator = DolphinApplication.getAppContext()
|
val vibrator = DolphinApplication.getAppContext()
|
||||||
.getSystemService(Context.VIBRATOR_SERVICE) as Vibrator
|
.getSystemService(Context.VIBRATOR_SERVICE) as Vibrator
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user