Hi all,
I have just started playing with jME today and I am be able to create the SimpleGame class and run it myself but I find the MouseLook speed there is quite fast and not very comfortable to me.
I read the documentation and try input.setActionSpeed() but no help
I also tried input.getFromAttachedHandlers().setActionSpeed() and it only worked with Keyboard speed
Till now I have no idea how to change the MouseLook speed in SimpleGame extension
Any reckons will be much appreciate
It's been a while since I used SImpleGame, but adding that in simpleInitGame() should work:
((FirstPersonHandler)input).getMouseLookHandler().setActionSpeed(0.2f);
.. as long as input is a FirstPersonHandler, so this is not the smartest solution.
Galun said:
It's been a while since I used SImpleGame, but adding that in simpleInitGame() should work:
((FirstPersonHandler)input).getMouseLookHandler().setActionSpeed(0.2f);
.. as long as input is a FirstPersonHandler, so this is not the smartest solution.
I must say you rock ! It works like a charm !
Yeah, nice idea to use casting there, i think the input variable in SimpleGame isnt the FirstPersonHandler so thats why the getMouseLookHandler() didnt show up ;)