Commented out debug logging, added back missing TODO statement regarding magic numbers

This commit is contained in:
ADAS2024 2026-05-09 17:58:47 -04:00
parent f365131e55
commit bf2423e471
3 changed files with 5 additions and 4 deletions

View file

@ -110,7 +110,7 @@ class HotkeyUtility(
}
fun handleHotkeyRelease(bindedButton: Int): Boolean {
Log.debug("Handling hotkey button release: " + bindedButton)
// Log.debug("Handling hotkey button release: " + bindedButton)
if (bindedButton == Hotkey.COMBO_KEY.button) {
ComboHelper.comboActivate(NativeLibrary.ButtonState.RELEASED)
}

View file

@ -1062,6 +1062,7 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback, Choreographer.Fram
// Buttons that are disabled by default
var defaultValue = true
when (i) {
// TODO: Remove these magic numbers
6, 7, 12, 13, 14, 15, 16 -> defaultValue = false
}
enabledButtons[i] = preferences.getBoolean("buttonToggle$i", defaultValue)

View file

@ -10,9 +10,9 @@ import org.citra.citra_emu.features.settings.model.IntListSetting
object ComboHelper {
fun comboActivate(buttonStatus: Int) {
val comboArray = IntListSetting.COMBO_KEYS.list
Log.info("Combo Array: $comboArray")
// Log.info("Combo Array: $comboArray")
for (nativeButton in comboArray) {
Log.info("Native Button: $nativeButton")
// Log.info("Native Button: $nativeButton")
if (nativeButton == -1)
{
// We don't want to parse any bad inputs here so we continue loop
@ -20,7 +20,7 @@ object ComboHelper {
}
else
{
Log.debug("Handling combo button press: $nativeButton")
// Log.debug("Handling combo button press: $nativeButton")
NativeLibrary.onGamePadEvent(NativeLibrary.TouchScreenDevice, nativeButton, buttonStatus)
}
}