You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers. No questions about C++ programming or topics which are answered in the tutorials!
Doesn't this seem like a huge hack in irrlicht? Seemingly, the only way to get a delta mouse position is to reset the mouse position to the center of the screen. What if i want to display the mouse cursor and get mouse deltas at the same time? In SDL for example, their event system comes with a mouse delta that is unbounded by the window. Can't irrlicht do something like that?
Seems like a rather intuitive steering way, because others use this as well. You can render other "cursors", controlled by e.g. joysticks, as you wish.
Moreover, mouse deltas just use the old value and check the distance to the current one, this does not require a reset. Just use it
hybrid wrote:Seems like a rather intuitive steering way, because others use this as well. You can render other "cursors", controlled by e.g. joysticks, as you wish.
Moreover, mouse deltas just use the old value and check the distance to the current one, this does not require a reset. Just use it
Yes, the only solution in irrlicht is to have a separate cursor.
As far as deltas, the X and Y variables inside SMouseInput are bounded by the screen, so this method doesn't work. Irrlicht just needs to add DeltaX and DeltaY to SMouseInput, much like SDL.