How can I know the button that was pressed from within a mouseDragged
event?
I'm having an issue in mouseDragged()
because the received MouseEvent
returns 0 for getButton()
. I have no problem with the mouse location, or even detecting mouse clicks. The mouseClicked()
event returns the appropriate button for getButton()
.
Any suggestions on how I can do this? I assume I could do a work-around using mouseClicked
, or mousePressed
, but I would prefer to keep this all within mouseDragged
.
Thanks for your time and answers.