Skip to content

Commit

Permalink
Update _mousewheelscroll.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram authored Jan 29, 2017
1 parent 4c48871 commit e24fded
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Themes/Til Death/BGAnimations/_mousewheelscroll.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ local pressingtab = false
local function scrollInput(event)
if event.DeviceInput.button == "DeviceButton_tab" then
if event.type == "InputEventType_FirstPress" then
local pressingtab = true
pressingtab = true
elseif event.type == "InputEventType_Release" then
local pressingtab = false
pressingtab = false
end
elseif event.DeviceInput.button == "DeviceButton_mousewheel up" and event.type == "InputEventType_FirstPress" then
moving = true
if pressingtab == true then
whee:Move(-1)
whee:Move(-2)
else
whee:Move(-1)
end
elseif event.DeviceInput.button == "DeviceButton_mousewheel down" and event.type == "InputEventType_FirstPress" then
moving = true
if pressingtab == true then
whee:Move(1)
whee:Move(2)
else
whee:Move(1)
end
Expand All @@ -37,4 +37,4 @@ local t = Def.ActorFrame{
self:visible(false)
end,
}
return t
return t

0 comments on commit e24fded

Please sign in to comment.