Exemple #1
0
 public boolean mouseHover() {
   int X = MOUSE.X();
   int Y = MOUSE.Y();
   if (X > x && Y > y && X < x + w && Y < y + h) {
     return true;
   }
   return false;
 }
Exemple #2
0
 public boolean isClicked() {
   int X = MOUSE.X();
   int Y = MOUSE.Y();
   return (X > x && Y > y && X < x + w && Y < y + h && MOUSE.oneClick(0));
 }