|
|
@ -693,6 +693,8 @@ end
|
|
|
|
-- Z-order swapping screen --
|
|
|
|
-- Z-order swapping screen --
|
|
|
|
-----------------------------
|
|
|
|
-----------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
local zscreen_inhibit_mouse_l = false
|
|
|
|
|
|
|
|
|
|
|
|
ZScreen = defclass(ZScreen, Screen)
|
|
|
|
ZScreen = defclass(ZScreen, Screen)
|
|
|
|
ZScreen.ATTRS{
|
|
|
|
ZScreen.ATTRS{
|
|
|
|
initial_pause=true,
|
|
|
|
initial_pause=true,
|
|
|
@ -754,7 +756,7 @@ function ZScreen:onInput(keys)
|
|
|
|
if keys._MOUSE_L_DOWN then
|
|
|
|
if keys._MOUSE_L_DOWN then
|
|
|
|
-- note we can't clear mouse_lbut here. otherwise we break dragging,
|
|
|
|
-- note we can't clear mouse_lbut here. otherwise we break dragging,
|
|
|
|
df.global.enabler.mouse_lbut_down = 0
|
|
|
|
df.global.enabler.mouse_lbut_down = 0
|
|
|
|
self.inhibit_mouse_l = true
|
|
|
|
zscreen_inhibit_mouse_l = true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
if keys._MOUSE_R_DOWN then
|
|
|
|
if keys._MOUSE_R_DOWN then
|
|
|
|
df.global.enabler.mouse_rbut_down = 0
|
|
|
|
df.global.enabler.mouse_rbut_down = 0
|
|
|
@ -773,11 +775,11 @@ function ZScreen:onInput(keys)
|
|
|
|
df.global.enabler.mouse_rbut = 0
|
|
|
|
df.global.enabler.mouse_rbut = 0
|
|
|
|
return
|
|
|
|
return
|
|
|
|
else
|
|
|
|
else
|
|
|
|
if self.inhibit_mouse_l then
|
|
|
|
if zscreen_inhibit_mouse_l then
|
|
|
|
if keys._MOUSE_L then
|
|
|
|
if keys._MOUSE_L then
|
|
|
|
return
|
|
|
|
return
|
|
|
|
else
|
|
|
|
else
|
|
|
|
self.inhibit_mouse_l = nil
|
|
|
|
zscreen_inhibit_mouse_l = false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
local passit = self.pass_pause and keys.D_PAUSE
|
|
|
|
local passit = self.pass_pause and keys.D_PAUSE
|
|
|
|