mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-09 16:45:46 -07:00
Merge branch 'inputqolctrlzoom' into 'master'
InputQOLCtrlZoom See merge request 2009scape/rt4-client!1
This commit is contained in:
commit
3e16a7bea4
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ class plugin : Plugin() {
|
||||||
object MouseWheelCallbacks : MouseWheelListener {
|
object MouseWheelCallbacks : MouseWheelListener {
|
||||||
override fun mouseWheelMoved(e: MouseWheelEvent?) {
|
override fun mouseWheelMoved(e: MouseWheelEvent?) {
|
||||||
e ?: return
|
e ?: return
|
||||||
if (API.IsKeyPressed(Keyboard.KEY_SHIFT)) {
|
if (API.IsKeyPressed(Keyboard.KEY_SHIFT) || API.IsKeyPressed(Keyboard.KEY_CTRL)) {
|
||||||
val previous = API.GetPreviousMouseWheelRotation()
|
val previous = API.GetPreviousMouseWheelRotation()
|
||||||
val current = API.GetMouseWheelRotation()
|
val current = API.GetMouseWheelRotation()
|
||||||
val diff = current - previous
|
val diff = current - previous
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue