removed monitor support due to it being too buggy

This commit is contained in:
Lux Aliaga 2021-05-07 03:15:35 -04:00
parent 8ea7559bef
commit e1791d8e9c

View file

@ -129,17 +129,6 @@ while true do
term.clear() term.clear()
ejectDisc() ejectDisc()
end end
elseif event == "monitor_touch" then
if eventData[3] >= centerWidth - 4 and eventData[4] >= centerHeight - 4 and eventData[3] <= centerWidth + 4 and eventData[4] <= centerHeight + 2 then
if playing == true then
stopDisc()
else
playDisc()
end
elseif eventData[3] >= centerWidth - 2 and eventData[4] >= centerHeight + 4 and eventData[3] <= centerWidth + 2 and eventData[4] <= centerHeight + 4 then
term.clear()
ejectDisc()
end
elseif event == "key_up" then elseif event == "key_up" then
local name = keys.getName(eventData[2]) or "unknown key" local name = keys.getName(eventData[2]) or "unknown key"
if name == "space" then if name == "space" then