Hello I want to use mouse with MouseInputEvent jme3
I managed for the keyboard by following the tutorial nifty gui
but i not find for the mouse
could you please help me for mouse niftygui implementation
I don’t know if you ever figured this out, but I was just having a similar problem with getting nifty-gui to recognize mouse input. At least in my case, this was what I figured out:
Make sure that in the .xml file you give your controls a child element called “interact” with an “onClick” attribute. Then it will start paying attention to the mouse. Something like this:
-label id=“helloWorld” text=“Hello World”-
-interact onClick=“helloWorld()” /-
-/label-
(replace - with xml brackets. I can’t figure out how to show xml here)
hopefully this helps…