Mouse Args Missing Delta

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

earthsruler
Quite a regular
Quite a regular
Posts: 74
Joined: Mon Apr 28, 2008 23:21
Location: Australia

Mouse Args Missing Delta

Postby earthsruler » Fri May 16, 2008 02:21

Alright i have noticed that if you are using injectMouseMove() with cegui your MouseEventArgs have a valid absolute and delta positions, however if you use injectMousePosition() it sets the position and then itself calls injectMouseMove(0, 0). This results in the MouseEventArgs for mouse move events not having a valid delta. It is infact 0 for X and Y.

I found this behavior strange and was curious why this design was chosen as it seem to make the mouse delta argument completely redundant purely based on your chosen way of injecting input.

Is there something Im missing?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Mon May 19, 2008 08:34

Hi,

You are of course correct; this should be considered a bug.

I'll add it to mantis so it's not lost :)

CE.


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 4 guests