This commit is contained in:
@@ -6,6 +6,7 @@ local INPUT_KEY_RIGHT = 3
|
|||||||
local INPUT_KEY_A = 4
|
local INPUT_KEY_A = 4
|
||||||
local INPUT_KEY_B = 5
|
local INPUT_KEY_B = 5
|
||||||
local INPUT_KEY_SPACE = 48
|
local INPUT_KEY_SPACE = 48
|
||||||
|
local INPUT_KEY_ENTER = 50
|
||||||
local INPUT_KEY_BACKSPACE = 51
|
local INPUT_KEY_BACKSPACE = 51
|
||||||
|
|
||||||
--- Checks if Up is pressed.
|
--- 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.
|
--- Checks if Back is pressed.
|
||||||
--- @within Input
|
--- @within Input
|
||||||
function Input.back() return btnp(INPUT_KEY_B) or keyp(INPUT_KEY_BACKSPACE) end
|
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
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ function TTGIntroWindow.update()
|
|||||||
TTGIntroWindow.glitch_started = true
|
TTGIntroWindow.glitch_started = true
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Count menu_back presses during the intro
|
-- Count enter presses during the intro
|
||||||
if Input.back() then
|
if Input.enter() then
|
||||||
TTGIntroWindow.space_count = TTGIntroWindow.space_count + 1
|
TTGIntroWindow.space_count = TTGIntroWindow.space_count + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user