Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

How to Properly use .isPressed();

Joined
May 6, 2015
Messages
16
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.
 
Joined
Apr 18, 2015
Messages
408
Not sure about the mouse but Powers.Magic.ANYKINDOFSPELLHERE.isSelected() should return true when selected..
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
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.
 
Top