Cursor Bug with custom window

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
sodandk
Competition winner
Posts: 340
Joined: Wed Aug 10, 2011 11:58 am

Cursor Bug with custom window

Post by sodandk »

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
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Cursor Bug with custom window

Post by CuteAlien »

Yeah, open bug: http://irrlicht.sourceforge.net/forum/v ... 32#p255132
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
Post Reply