Skip to content

Commit

Permalink
Add keyboard scrolling to Pack Downloader Screens
Browse files Browse the repository at this point in the history
and i made it 2 buttons so you can trill and do it faster
  • Loading branch information
poco0317 committed Nov 24, 2019
1 parent 46d512a commit 90b8820
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Themes/Til Death/BGAnimations/ScreenBundleSelect underlay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ local diffcolors = {"#66ccff", "#099948", "#ddaa00", "#ff6666", "#c97bff"}
local moving

local function input(event)
if event.DeviceInput.button == "DeviceButton_mousewheel up" and event.type == "InputEventType_FirstPress" then
if (event.DeviceInput.button == "DeviceButton_mousewheel up" or event.button == "MenuUp" or event.button == "MenuLeft") and event.type == "InputEventType_FirstPress" then
moving = true
MESSAGEMAN:Broadcast("WheelUpSlow")
elseif event.DeviceInput.button == "DeviceButton_mousewheel down" and event.type == "InputEventType_FirstPress" then
elseif (event.DeviceInput.button == "DeviceButton_mousewheel down" or event.button == "MenuDown" or event.button == "MenuRight") and event.type == "InputEventType_FirstPress" then
moving = true
MESSAGEMAN:Broadcast("WheelDownSlow")
elseif event.DeviceInput.button == "DeviceButton_left mouse button" then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ local moving = false

local function DlInput(event)

if event.DeviceInput.button == "DeviceButton_mousewheel up" and event.type == "InputEventType_FirstPress" then
if (event.DeviceInput.button == "DeviceButton_mousewheel up" or event.button == "MenuUp" or event.button == "MenuLeft") and event.type == "InputEventType_FirstPress" then
moving = true
MESSAGEMAN:Broadcast("WheelUpSlow")
elseif event.DeviceInput.button == "DeviceButton_mousewheel down" and event.type == "InputEventType_FirstPress" then
elseif (event.DeviceInput.button == "DeviceButton_mousewheel down" or event.button == "MenuDown" or event.button == "MenuRight") and event.type == "InputEventType_FirstPress" then
moving = true
MESSAGEMAN:Broadcast("WheelDownSlow")
elseif event.DeviceInput.button == "DeviceButton_left mouse button" then
Expand Down

0 comments on commit 90b8820

Please sign in to comment.