mirror of
https://github.com/amwatson/CitraVR.git
synced 2024-09-20 03:11:40 +02:00
[EmulationActivity] Input handling: var -> val
This commit is contained in:
parent
5aa8a4cae5
commit
c652bbf25f
1 changed files with 3 additions and 3 deletions
|
@ -275,21 +275,21 @@ open class EmulationActivity : AppCompatActivity() {
|
|||
// In case the stick is bound to more than one input
|
||||
// (which is always the case when the user remaps one of the
|
||||
// defaults), only replace previous value if the current axis is active.
|
||||
var isAlreadyMappedToActive = axisValuesCirclePad[guestOrientation] != 0f
|
||||
val isAlreadyMappedToActive = axisValuesCirclePad[guestOrientation] != 0f
|
||||
if (isCurrentAxisActive || !isAlreadyMappedToActive) {
|
||||
axisValuesCirclePad[guestOrientation] = value
|
||||
}
|
||||
}
|
||||
|
||||
NativeLibrary.ButtonType.STICK_C -> {
|
||||
var isAlreadyMappedToActive = axisValuesCStick[guestOrientation] != 0f
|
||||
val isAlreadyMappedToActive = axisValuesCStick[guestOrientation] != 0f
|
||||
if (isCurrentAxisActive || !isAlreadyMappedToActive) {
|
||||
axisValuesCStick[guestOrientation] = value
|
||||
}
|
||||
}
|
||||
|
||||
NativeLibrary.ButtonType.DPAD -> {
|
||||
var isAlreadyMappedToActive = axisValuesDPad[guestOrientation] != 0f
|
||||
val isAlreadyMappedToActive = axisValuesDPad[guestOrientation] != 0f
|
||||
if (isCurrentAxisActive || !isAlreadyMappedToActive) {
|
||||
axisValuesDPad[guestOrientation] = value
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue