mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-23 07:26:55 +00:00
Update tron.lua
This commit is contained in:
parent
a0b4e31bed
commit
6816186cf6
5
tron.lua
5
tron.lua
@ -838,14 +838,15 @@ local getInput = function()
|
||||
elseif evt[1] == "key_up" then
|
||||
keysDown[evt[2]] = false
|
||||
elseif evt[1] == "mouse_click" or evt[1] == "mouse_drag" then
|
||||
keysDown[mkey] = false
|
||||
if evt[1] == "mouse_drag" then
|
||||
keysDown[mkey] = false
|
||||
end
|
||||
mkey = parseMouseInput(evt[2], evt[3], evt[4])
|
||||
lastDirectionPressed = revControl[mkey]
|
||||
keysDown[mkey] = true
|
||||
elseif evt[1] == "mouse_up" then
|
||||
keysDown[mkey] = false
|
||||
mkey = parseMouseInput(evt[2], evt[3], evt[4])
|
||||
lastDirectionPressed = nil
|
||||
keysDown[mkey] = false
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user