miroir de https://git.suyu.dev/suyu/suyu.git
16 lignes
445 B
Kotlin
16 lignes
445 B
Kotlin
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
|
// SPDX-FileCopyrightText: 2024 suyu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
package dev.suyu.suyu_emu.features.input.model
|
|
|
|
// Must match enum in src/common/settings_input.h
|
|
enum class NativeAnalog(val int: Int) {
|
|
LStick(0),
|
|
RStick(1);
|
|
|
|
companion object {
|
|
fun from(int: Int): NativeAnalog = entries.firstOrNull { it.int == int } ?: LStick
|
|
}
|
|
}
|