mirror of
https://github.com/LDDestroier/CC/
synced 2025-05-05 08:24:05 +00:00
Update pain.lua
This commit is contained in:
parent
aaf30b9290
commit
bf6783262a
4
pain.lua
4
pain.lua
@ -3013,7 +3013,7 @@ local getInput = function() --gotta catch them all
|
|||||||
local mevt
|
local mevt
|
||||||
repeat
|
repeat
|
||||||
mevt = {os.pullEvent()}
|
mevt = {os.pullEvent()}
|
||||||
until (mevt[1] == "key" and mevt[2] == keys.x) or (mevt[1] == "mouse_click" and mevt[2] == 1 and (mevt[4] or scr_y) < scr_y-(renderBlittle and 0 or doRenderBar))
|
until (mevt[1] == "key" and mevt[2] == keys.x) or (mevt[1] == "mouse_click" and mevt[2] == 1 and (mevt[4] or scr_y) <= scr_y-(renderBlittle and 0 or doRenderBar))
|
||||||
if not (mevt[1] == "key" and mevt[2] == keys.x) then
|
if not (mevt[1] == "key" and mevt[2] == keys.x) then
|
||||||
local x,y = mevt[3],mevt[4]
|
local x,y = mevt[3],mevt[4]
|
||||||
if renderBlittle then
|
if renderBlittle then
|
||||||
@ -3033,7 +3033,7 @@ local getInput = function() --gotta catch them all
|
|||||||
local mevt
|
local mevt
|
||||||
repeat
|
repeat
|
||||||
mevt = {os.pullEvent()}
|
mevt = {os.pullEvent()}
|
||||||
until (mevt[1] == "key" and mevt[2] == keys.x) or (mevt[1] == "mouse_click" and mevt[2] <= 2 and (mevt[4] or scr_y) < scr_y-(renderBlittle and 0 or doRenderBar))
|
until (mevt[1] == "key" and mevt[2] == keys.x) or (mevt[1] == "mouse_click" and mevt[2] <= 2 and (mevt[4] or scr_y) <= scr_y-(renderBlittle and 0 or doRenderBar))
|
||||||
if not (mevt[1] == "key" and mevt[2] == keys.x) then
|
if not (mevt[1] == "key" and mevt[2] == keys.x) then
|
||||||
local x,y = mevt[3],mevt[4]
|
local x,y = mevt[3],mevt[4]
|
||||||
if renderBlittle then
|
if renderBlittle then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user