mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 08:39:04 +00:00
39 lines
863 B
Java
39 lines
863 B
Java
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
|
|
// Jad home page: http://www.kpdus.com/jad.html
|
|
// Decompiler options: packimports(3)
|
|
|
|
final class MouseDetection implements Runnable {
|
|
|
|
@Override
|
|
public void run() {
|
|
while (running) {
|
|
synchronized (syncObject) {
|
|
if (coordsIndex < 500) {
|
|
coordsX[coordsIndex] = clientInstance.mouseX;
|
|
coordsY[coordsIndex] = clientInstance.mouseY;
|
|
coordsIndex++;
|
|
}
|
|
}
|
|
try {
|
|
Thread.sleep(50L);
|
|
} catch (Exception _ex) {
|
|
}
|
|
}
|
|
}
|
|
|
|
public MouseDetection(Game client1) {
|
|
syncObject = new Object();
|
|
coordsY = new int[500];
|
|
running = true;
|
|
coordsX = new int[500];
|
|
clientInstance = client1;
|
|
}
|
|
|
|
private Game clientInstance;
|
|
public final Object syncObject;
|
|
public final int[] coordsY;
|
|
public boolean running;
|
|
public final int[] coordsX;
|
|
public int coordsIndex;
|
|
}
|