wasliebob

Untitled

Jun 8th, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. public static boolean isMouseBetween(int mouseX, int mouseY, int x, int y, int width, int height) {
  2. int xSize = x + width;
  3. int ySize = y + height;
  4.  
  5. if(mouseX > x && mouseX < xSize && mouseY > y && mouseY < ySize)
  6. return true;
  7.  
  8. return false;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment