From 211af18c268da0b17490d4be8a7503eefe659945 Mon Sep 17 00:00:00 2001 From: Zsolt Tasnadi Date: Thu, 2 Apr 2026 21:51:43 +0200 Subject: [PATCH] debug mode fix --- inc/system/system.input.lua | 4 ++++ inc/window/window.intro.ttg.lua | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/inc/system/system.input.lua b/inc/system/system.input.lua index 9fe0ae5..5f0cc15 100644 --- a/inc/system/system.input.lua +++ b/inc/system/system.input.lua @@ -6,6 +6,7 @@ local INPUT_KEY_RIGHT = 3 local INPUT_KEY_A = 4 local INPUT_KEY_B = 5 local INPUT_KEY_SPACE = 48 +local INPUT_KEY_ENTER = 50 local INPUT_KEY_BACKSPACE = 51 --- Checks if Up is pressed. @@ -26,3 +27,6 @@ function Input.select() return btnp(INPUT_KEY_A) or keyp(INPUT_KEY_SPACE) or Mou --- Checks if Back is pressed. --- @within Input function Input.back() return btnp(INPUT_KEY_B) or keyp(INPUT_KEY_BACKSPACE) end +--- Checks if Enter is pressed. +--- @within Input +function Input.enter() return keyp(INPUT_KEY_ENTER) end diff --git a/inc/window/window.intro.ttg.lua b/inc/window/window.intro.ttg.lua index ee75c00..3fd4378 100644 --- a/inc/window/window.intro.ttg.lua +++ b/inc/window/window.intro.ttg.lua @@ -27,8 +27,8 @@ function TTGIntroWindow.update() TTGIntroWindow.glitch_started = true end - -- Count menu_back presses during the intro - if Input.back() then + -- Count enter presses during the intro + if Input.enter() then TTGIntroWindow.space_count = TTGIntroWindow.space_count + 1 end