mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-08 13:43:33 +01:00
Android: Convert DolphinVibratorManager to Kotlin
This commit is contained in:
parent
ba9f2373c0
commit
1ff6a3788e
@ -1,20 +0,0 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
||||||
|
|
||||||
package org.dolphinemu.dolphinemu.features.input.model;
|
|
||||||
|
|
||||||
import android.os.Vibrator;
|
|
||||||
|
|
||||||
import androidx.annotation.Keep;
|
|
||||||
import androidx.annotation.NonNull;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A wrapper around {@link android.os.VibratorManager}, for backwards compatibility.
|
|
||||||
*/
|
|
||||||
public interface DolphinVibratorManager
|
|
||||||
{
|
|
||||||
@Keep @NonNull
|
|
||||||
Vibrator getVibrator(int vibratorId);
|
|
||||||
|
|
||||||
@Keep @NonNull
|
|
||||||
int[] getVibratorIds();
|
|
||||||
}
|
|
@ -0,0 +1,16 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
package org.dolphinemu.dolphinemu.features.input.model
|
||||||
|
|
||||||
|
import android.os.Vibrator
|
||||||
|
import androidx.annotation.Keep
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A wrapper around [android.os.VibratorManager], for backwards compatibility.
|
||||||
|
*/
|
||||||
|
@Keep
|
||||||
|
interface DolphinVibratorManager {
|
||||||
|
fun getVibrator(vibratorId: Int): Vibrator
|
||||||
|
|
||||||
|
fun getVibratorIds(): IntArray
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user