I am aware of the MouseInfo.getPointerInfo() method, but you can only get the mouse location using this. However, I also want to know the buttons pressed (specifically just the BUTTON1_DOWN_MASK), without any events. This is because the program will ask the user to create a rectangle by dragging the mouse on the screen with animations that is not part of the java application. Thank you for your help.
Armanious 0 Newbie Poster
mKorbel 274 Veteran Poster
SasseMan 49 Junior Poster
Armanious 0 Newbie Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.