We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProcessing DevelopmentLibraries,  Tool Development › Maus -- simplified mouse handling
Page Index Toggle Pages: 1
Maus -- simplified mouse handling (Read 1915 times)
Maus -- simplified mouse handling
May 8th, 2005, 10:46pm
 
well it's not much of a thing ... but since i've put it on my server here's the link:

http://www.bezier.de/maus/

it's a small lib that let's you implement standard mouse events like enter() over() exit() pressed() dragged() easily into your objects ...

example and mini-doc is online, source and build-file are in the download.

let me know what you think, requests, bugs, ... everything welcome.

F
Re: Maus -- simplified mouse handling
Reply #1 - May 25th, 2005, 5:57pm
 
Nice fjen! It would be easier to work with mouse envents, I'll try it.

Shall we add mouse wheel support to it? I don't know if it is rellevant, but it could be great to have everything about extensions for mouse together.

Here's the code I use for:
Code:
void setup() {
addMouseWheelListener(new java.awt.event.MouseWheelListener() {
public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt) {
int notches = evt.getWheelRotation();
if(notches!=0)
println(notches);
}
});
}
It doesn't work everywhere, but some browser support it.

Here's an example: http://ingallian.design.uqam.ca/goo/P55/ImageExplorer/

Original Thread: http://processing.org/discourse/yabb/YaBB.cgi?board=Syntax;action=display;num=1110627607;start=3
Page Index Toggle Pages: 1