skyline/app/src/main/java/emu/skyline/input
lynxnb b7548e51cf Use AndroidX use extension function instead of Kotlin built-in one
The Kotlin built-in `use` extension function applies to `AutoCloseable` only, and throws an error if the object it's being called on is not an `AutoCloseable`. This causes `OnScreenView` to fail to inflate on SDK < 31 as it retrieved the current theme primary color with a `TypedArray`, which only implements `AutoCloseable` since SDK 31 (Android 12).
The AndroidX core library provides a `use` extension function that applies to `TypeArray` instead of `AutoCloseable` so the fix is just a simple import.
2023-05-02 12:27:57 +01:00
..
dialog Update themes and styles to Material Design 3 2023-03-22 21:57:50 +01:00
onscreen Use AndroidX use extension function instead of Kotlin built-in one 2023-05-02 12:27:57 +01:00
Controller.kt Add separate L3 and R3 buttons to OSC 2023-04-02 18:16:10 +02:00
ControllerActivity.kt Add OSC recenter sticks option description 2023-05-02 12:27:57 +01:00
GuestEvent.kt Introduce a control panel to edit buttons instead of a fab bar 2023-05-02 12:27:57 +01:00
HostEvent.kt Don't ignore HAT axes input events 2022-11-17 21:54:15 +01:00
InputHandler.kt Add separate L3 and R3 buttons to OSC 2023-04-02 18:16:10 +02:00
InputManager.kt Use built-in vibrator by default for controller #0 2022-04-14 14:14:52 +05:30