Camera Animator
-
cheshirekow
- Posts: 105
- Joined: Mon Jul 27, 2009 4:06 pm
- Location: Cambridge, MA
-
cheshirekow
- Posts: 105
- Joined: Mon Jul 27, 2009 4:06 pm
- Location: Cambridge, MA
When I get some time I will try to compile and run your code and let you know if I can see why this isn't working. I'm compiling my codes with MinGW GCC on Windows XP with 1.5 (not the svn trunk) and not experiencing this problem.
The screen will "snap" when you stop watching the cursor and resetting the cursor to (0,0) for a while, and then you start doing it again. When that happens, the cursor will be "far" away from (0,0) so it will jump to the position the mouse is at. This may be your issue. Again, I will try to take a look at the program in more detail but it will be a little while.
The screen will "snap" when you stop watching the cursor and resetting the cursor to (0,0) for a while, and then you start doing it again. When that happens, the cursor will be "far" away from (0,0) so it will jump to the position the mouse is at. This may be your issue. Again, I will try to take a look at the program in more detail but it will be a little while.
-
cheshirekow
- Posts: 105
- Joined: Mon Jul 27, 2009 4:06 pm
- Location: Cambridge, MA
Ok, I compiled your code and looked at it for a bit, and I definitely see what you're talking about. It is a very strange and frustrating problem, but I have an idea of why it's doing this.
It's been a while since I've done any real windows work, but as I recall the windows message system places priority on input events. I think what is happening is that: since the mouse button is held down, the OS is continuously sending mouse events (messages) that supercede user messages. This doesn't make 100% sense to me but what I'm guessing is that setVisible() issues a message to the OS to stop displaying the cursor which isn't handled until after the continuous stream of mouse input is done (you release the mouse) due how windows prioritizes it's messages.
I think there are a couple of options for a work around. One is that you can hide the mouse always, and use a custom mouse cursor (display a texture) and then you and the irrlicht system get to decide when it is displayed.
You might want to start digging around the source and try to confirm my suspicions, and maybe work out a fix.
It's been a while since I've done any real windows work, but as I recall the windows message system places priority on input events. I think what is happening is that: since the mouse button is held down, the OS is continuously sending mouse events (messages) that supercede user messages. This doesn't make 100% sense to me but what I'm guessing is that setVisible() issues a message to the OS to stop displaying the cursor which isn't handled until after the continuous stream of mouse input is done (you release the mouse) due how windows prioritizes it's messages.
I think there are a couple of options for a work around. One is that you can hide the mouse always, and use a custom mouse cursor (display a texture) and then you and the irrlicht system get to decide when it is displayed.
You might want to start digging around the source and try to confirm my suspicions, and maybe work out a fix.