mirror of https://github.com/LDDestroier/CC/
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
|
if adjX >= 1 and adjX <= pain.size.width and adjY >= 1 and adjY <= pain.size.height then
|
||||||
|
|
||||||
pain.isInFocus = true
|
pain.isInFocus = true
|
||||||
|
|
||||||
if adjY == pain.size.height then
|
if adjY == pain.size.height then
|
||||||
|
|
||||||
if evt[1] == "mouse_click" then
|
if evt[1] == "mouse_click" then
|
||||||
|
@ -1473,7 +1473,11 @@ local getInput = function()
|
||||||
else
|
else
|
||||||
|
|
||||||
if pain.limitOneMouseButton then
|
if pain.limitOneMouseButton then
|
||||||
dragPoses = {{{},{}}, {{},{}}, {{},{}}}
|
dragPoses = {
|
||||||
|
dragPoses[1] or {{},{}},
|
||||||
|
dragPoses[2] or {{},{}},
|
||||||
|
dragPoses[3] or {{},{}}
|
||||||
|
}
|
||||||
dragPoses = {
|
dragPoses = {
|
||||||
[evt[2]] = {
|
[evt[2]] = {
|
||||||
{
|
{
|
||||||
|
@ -1530,7 +1534,11 @@ local getInput = function()
|
||||||
keysDown = {}
|
keysDown = {}
|
||||||
end
|
end
|
||||||
elseif evt[1] == "mouse_up" then
|
elseif evt[1] == "mouse_up" then
|
||||||
dragPoses[evt[2]] = {{},{}}, {{},{}}, {{},{}}
|
if pain.limitOneMouseButton then
|
||||||
|
dragPoses = {{{},{}}, {{},{}}, {{},{}}}
|
||||||
|
else
|
||||||
|
dragPoses[evt[2]] = {{},{}}, {{},{}}, {{},{}}
|
||||||
|
end
|
||||||
miceDown[evt[2]] = false
|
miceDown[evt[2]] = false
|
||||||
elseif evt[1] == "key_up" then
|
elseif evt[1] == "key_up" then
|
||||||
keysDown[evt[2]] = false
|
keysDown[evt[2]] = false
|
||||||
|
|
Loading…
Reference in New Issue