consolidate

This commit is contained in:
bushtail 2023-05-05 18:49:50 -04:00
parent 6c288da807
commit 8ed7c57377
2 changed files with 1 additions and 115 deletions

View file

@ -63,7 +63,7 @@ class plugin : Plugin() {
object MouseWheelCallbacks : MouseWheelListener {
override fun mouseWheelMoved(e: MouseWheelEvent?) {
e ?: return
if (API.IsKeyPressed(Keyboard.KEY_SHIFT)) {
if (API.IsKeyPressed(Keyboard.KEY_SHIFT) || API.IsKeyPressed(Keyboard.KEY_CTRL)) {
val previous = API.GetPreviousMouseWheelRotation()
val current = API.GetMouseWheelRotation()
val diff = current - previous