Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #539: GetMouseState not returning Wheel value
Product:
TV3D SDK 6.5
Language:
C#
Current State:
Closed
Resolution:
Fixed
Created On:
January 4th, 2006
Last Modified:
January 14th, 2006
Reported By:
jimneumann
Returned result from retRoll is always 0 (zero). The same code changed to GetAbsMouseState works.

Input.GetMouseState(ref MouseX, ref MouseY, ref MouseB1, ref MouseB2, ref MouseB3, ref MouseB4, ref MouseScroll);
Console.WriteLine("ms: " + MouseScroll.ToString());

Comments:

Posted by SylvainTV on January 14th, 2006 at 5:01 PM
Well, there was no bug. I retested it here.

Remember GetMouseState gives relative movement (also for mouse wheel)

I get -120 and 120 when i move the mousewheel, then it goes back to 0, so as expected.

There was a bug in 6.2 which made both functions return absolute movement for mouse roll. This is fixed in 6.5 so that's maybe the problem :)