Hi all,
(thanks for the recent great release!)
It seems there's a new event registration method in Processing-2b1 which deprecates the old one. Does anyone know how it works now? The wiki seems outdated (
http://code.google.com/p/processing/wiki/LibraryBasics).
The deprecated mouse event method still works for me (proscene), i.e., parent.registerMouseEvent, but no the parent.registerKeyEvent, as I'm getting the following runtime error:
Exception in thread "Animation Thread" java.lang. IllegalArgumentException:
argument type mismatch
at sun.reflect. NativeMethodAccessorImpl. invoke0(Native Method)
at
sun.reflect. NativeMethodAccessorImpl. invoke( NativeMethodAccessorImpl.java: 57)
at
sun.reflect. DelegatingMethodAccessorImpl. invoke( DelegatingMethodAccessorImpl. java:43)
at java.lang.reflect.Method. invoke(Method.java:601)
at processing.core.PApplet$ RegisteredMethods.handle( PApplet.java:1076)
at processing.core.PApplet. handleKeyEvent(PApplet.java: 2848)
at processing.core.PApplet. dequeueKeyEvents(PApplet.java: 2793)
at processing.core.PApplet. handleDraw(PApplet.java:2132)
argument type mismatch
at sun.reflect.
at
sun.reflect.
at
sun.reflect.
at java.lang.reflect.Method.
at processing.core.PApplet$
at processing.core.PApplet.
at processing.core.PApplet.
at processing.core.PApplet.
Do you think is it a bug?
Cheers,
Jean Pierre
1