Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #534: CTVInputEngine.GetMouseState() screwed
Product:
TV3D SDK 6.5
Language:
C++
Current State:
Closed
Resolution:
Fixed
Created On:
December 23rd, 2005
Last Modified:
December 31st, 2005
Reported By:
Mietze
CTVInputEngine.GetMouseState() returns wrong X / Y states. This is what my code looks like:

int test1 = 0;
int test2 = 0;
pTVInputEngine-GetMouseState(&test1, &test2);

CEngine-m_Log.AddDebug(test1, "X");
CEngine-m_Log.AddDebug(test2, "Y");

Simple - Thats my log:

22:22:48 - DEBUG: X - 268794816
22:22:48 - DEBUG: Y - 1368964

These values are constant. No change if i move the mouse or not. And these values are definately not correct!


Good luck,

MietzE

Comments:

Posted by Mietze on December 23rd, 2005 at 10:45 PM
Problem solved! DO NOT use SetFocus( hWindowHandle ) for your window after initializing TV3D! This will steal TV3D's CTV3DInputEngine's link to the mouse device!
Posted by SylvainTV on December 31st, 2005 at 2:30 PM
Good point ;)