mirror of
https://github.com/LDDestroier/CC/
synced 2024-12-04 23:39:58 +00:00
Fixed line tool
This commit is contained in:
parent
0560dd3403
commit
e35e29bd31
14
pain2.lua
14
pain2.lua
@ -1458,7 +1458,7 @@ local getInput = function()
|
||||
if adjX >= 1 and adjX <= pain.size.width and adjY >= 1 and adjY <= pain.size.height then
|
||||
|
||||
pain.isInFocus = true
|
||||
|
||||
|
||||
if adjY == pain.size.height then
|
||||
|
||||
if evt[1] == "mouse_click" then
|
||||
@ -1473,7 +1473,11 @@ local getInput = function()
|
||||
else
|
||||
|
||||
if pain.limitOneMouseButton then
|
||||
dragPoses = {{{},{}}, {{},{}}, {{},{}}}
|
||||
dragPoses = {
|
||||
dragPoses[1] or {{},{}},
|
||||
dragPoses[2] or {{},{}},
|
||||
dragPoses[3] or {{},{}}
|
||||
}
|
||||
dragPoses = {
|
||||
[evt[2]] = {
|
||||
{
|
||||
@ -1530,7 +1534,11 @@ local getInput = function()
|
||||
keysDown = {}
|
||||
end
|
||||
elseif evt[1] == "mouse_up" then
|
||||
dragPoses[evt[2]] = {{},{}}, {{},{}}, {{},{}}
|
||||
if pain.limitOneMouseButton then
|
||||
dragPoses = {{{},{}}, {{},{}}, {{},{}}}
|
||||
else
|
||||
dragPoses[evt[2]] = {{},{}}, {{},{}}, {{},{}}
|
||||
end
|
||||
miceDown[evt[2]] = false
|
||||
elseif evt[1] == "key_up" then
|
||||
keysDown[evt[2]] = false
|
||||
|
Loading…
Reference in New Issue
Block a user