예제 #1
0
        private void Hook_MouseWheelExt(object sender, MouseEventExtArgs e)
        {
            if (!configuration.EnableCtrlScroll || !nativeProcess.IsPathOfExileInFocus)
            {
                return;
            }

            // Ctrl + Scroll wheel to move between stash tabs.
            if (nativeKeyboard.IsKeyPressed("Ctrl"))
            {
                if (e.Delta > 0)
                {
                    stashService.ScrollLeft();
                }
                else
                {
                    stashService.ScrollRight();
                }

                e.Handled = true;
            }
        }
예제 #2
0
 private Task <bool> Events_OnTabRight()
 {
     stashService.ScrollRight();
     return(Task.FromResult(true));
 }