So I made my own Windows Window, and to use
the mouse as movement in the world, I do
gDevice->getCursorControl()->setPosition(100,100);
and
class MyEventReceiver : public IEventReceiver
to grab the mouse position if it changes, and the difference in x and y to
move the player around.
Problem is that as soon as I set 100,100 I get an event with position 95,95.
So the player constantly moves around, even if I dont touch the mouse.
It works just fine, If I dont use my own window.
HELP!
using latest version from repo.
Søren
Cursor Bug with custom window
Cursor Bug with custom window
Build A World -> http://www.buildaworld.net/
Build A World EDU -> http://edu.buildaworld.net/
BAW on Facebook -> http://www.facebook.com/BuildAWorld.net
BAW on YouTube -> http://www.youtube.com/user/wwwbuildaworldnet/videos
Build A World EDU -> http://edu.buildaworld.net/
BAW on Facebook -> http://www.facebook.com/BuildAWorld.net
BAW on YouTube -> http://www.youtube.com/user/wwwbuildaworldnet/videos
Re: Cursor Bug with custom window
Yeah, open bug: http://irrlicht.sourceforge.net/forum/v ... 32#p255132
Workaround described there.
Workaround described there.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm