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(
|
||||
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user