debug mode fix
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-04-02 21:51:43 +02:00
parent b337ae8516
commit 211af18c26
2 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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