mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-23 13:01:50 +01:00
Use built-in vibrator by default for controller #0
The vibration device had to be set manually prior which led to it generally not being set at all even though a user might want vibration, this commit fixes that by making controller #0 use the built-in vibrator by default.
This commit is contained in:
parent
924d5f7081
commit
36a7ad06bd
@ -8,6 +8,7 @@ package emu.skyline.input
|
||||
import android.content.Context
|
||||
import android.util.Log
|
||||
import dagger.hilt.android.qualifiers.ApplicationContext
|
||||
import emu.skyline.R
|
||||
import java.io.*
|
||||
import javax.inject.Inject
|
||||
import javax.inject.Singleton
|
||||
@ -44,7 +45,7 @@ class InputManager @Inject constructor(@ApplicationContext context : Context) {
|
||||
}
|
||||
|
||||
controllers = hashMapOf(
|
||||
0 to Controller(0, ControllerType.HandheldProController),
|
||||
0 to Controller(0, ControllerType.HandheldProController, Controller.BuiltinRumbleDeviceDescriptor, context.getString(R.string.builtin_vibrator)),
|
||||
1 to Controller(1, ControllerType.None),
|
||||
2 to Controller(2, ControllerType.None),
|
||||
3 to Controller(3, ControllerType.None),
|
||||
|
Loading…
Reference in New Issue
Block a user