How to Properly use .isPressed();

Discussion in 'Developer Support' started by DesignDecay, Jun 24, 2015.

  1. I may be mistaken, but it appears the purpose of Mouse.isPressed() is to tell whether or not the mouse has been pressed. However, it seems to always return false. I am having similar issues with Mouse.isMoving() and Powers.Magic.isSelected(). If someone could lend me some guidance I'd appreciate it.
  2. Not sure about the mouse but Powers.Magic.ANYKINDOFSPELLHERE.isSelected() should return true when selected..
  3. Mouse.isPressed only reports if the virtual mouse is pressed. To know whether the mouse was pressed by an actual press you need to use a MouseListener.
  4. Ahh, great. Thanks.

Share This Page