mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Add TV remote code
This commit is contained in:
9
main.lua
9
main.lua
@@ -102,10 +102,10 @@ function love.draw()
|
||||
-- love.graphics.line(0, grid_height * iy, 640, grid_height * iy)
|
||||
-- end
|
||||
|
||||
-- local x, y = GLOBAL_TRANSFORM:inverseTransformPoint(love.mouse.getPosition())
|
||||
-- love.graphics.setColor(0, 0, 0, 0.8)
|
||||
-- love.graphics.rectangle("fill", 5, 450, 115, 25)
|
||||
-- drawText(string.format("X: %.1d; Y: %.1d", x, y), 10, 455, 110, "left")
|
||||
local x, y = GLOBAL_TRANSFORM:inverseTransformPoint(love.mouse.getPosition())
|
||||
love.graphics.setColor(0, 0, 0, 0.8)
|
||||
love.graphics.rectangle("fill", 5, 450, 115, 25)
|
||||
drawText(string.format("X: %.1d; Y: %.1d", x, y), 10, 455, 110, "left")
|
||||
|
||||
-- love.graphics.setColor(1, 1, 1, 1)
|
||||
-- love.graphics.setLineWidth(2)
|
||||
@@ -157,6 +157,7 @@ function love.keypressed(key, scancode)
|
||||
elseif scancode == "f2" and SCENE.title ~= "Input Config" and SCENE.title ~= "Game" then
|
||||
SCENE = InputConfigScene()
|
||||
elseif scancode == "f12" then LLDEBUGGER.requestBreak()
|
||||
elseif scancode == "f11" then SETTINGS.firstTime = true
|
||||
-- function keys are reserved
|
||||
elseif string.match(scancode, "^f[1-9]$") or string.match(scancode, "^f1[0-2]+$") then
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user