示例#1
0
文件: Button.java 项目: Jorgtre/Java
 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;
 }
示例#2
0
文件: Button.java 项目: Jorgtre/Java
 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));
 }