mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-25 06:04:59 +00:00
56 lines
1.2 KiB
Java
56 lines
1.2 KiB
Java
package ao;
|
|
|
|
import java.awt.MouseInfo;
|
|
import java.awt.Point;
|
|
|
|
class hw extends Thread {
|
|
boolean a = false;
|
|
|
|
long b = 0L;
|
|
|
|
long c = 0L;
|
|
|
|
Object d = new Object();
|
|
|
|
hw(hj paramhj) {}
|
|
|
|
public void run() {
|
|
while (true) {
|
|
synchronized (this.d) {
|
|
try {
|
|
this.d.wait(500L);
|
|
} catch (Exception exception) {}
|
|
}
|
|
if ((this.a && System.currentTimeMillis() - this.c > 500L) || (System.currentTimeMillis() - this.b > 2000L && !c())) {
|
|
this.e.e();
|
|
this.a = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
private boolean c() {
|
|
try {
|
|
Point point1 = MouseInfo.getPointerInfo().getLocation();
|
|
Point point2 = this.e.getLocationOnScreen();
|
|
return (point1.x > point2.x && point1.y > point2.y && point1.x < point2.x + this.e.getWidth() && point1.y < point2.y + this.e.getHeight());
|
|
} catch (Exception exception) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public void a() {
|
|
this.a = false;
|
|
this.b = System.currentTimeMillis();
|
|
}
|
|
|
|
public void b() {
|
|
this.a = true;
|
|
this.c = System.currentTimeMillis();
|
|
}
|
|
}
|
|
|
|
|
|
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/ao/hw.class
|
|
* Java compiler version: 8 (52.0)
|
|
* JD-Core Version: 1.1.3
|
|
*/ |