package org.runite.client; import java.awt.*; import java.awt.event.MouseWheelEvent; import java.awt.event.MouseWheelListener; final class MouseWheel extends Class146 implements MouseWheelListener { static int moveAmt = 0; static boolean shiftDown = false; static boolean ctrlDown = false; private int anInt2941 = 0; final void method2082(Component var2) { var2.removeMouseWheelListener(this); } final synchronized int method2078() { int var2 = this.anInt2941; this.anInt2941 = 0; return var2; } public final synchronized void mouseWheelMoved(MouseWheelEvent var1) { this.anInt2941 += var1.getWheelRotation(); moveAmt = var1.getWheelRotation(); // Client scroll if (shiftDown || ctrlDown) { if ((Client.ZOOM > 1200 && MouseWheel.moveAmt >= 0) || (Client.ZOOM < 100 && MouseWheel.moveAmt <= 0)) { //Class3_Sub28_Sub12.sendMessage("You cannot zoom any further than this."); return; } Client.ZOOM += MouseWheel.moveAmt >= 0 ? 50 : -50; //Class3_Sub28_Sub12.sendMessage("Game client is back to default zoom."); } } final void method2084(Component var1, int var2) { if (var2 < -70) { var1.addMouseWheelListener(this); } } }