WM_INPUT (More precise mouse aiming)
by Aaron ward · in Torque 3D Professional · 06/08/2012 (4:32 pm) · 2 replies
Could someone (Preferably an employee) point me in the right direction of implementing WM_INPUT in order to replace WM_MOUSEMOVE?
Just a brief overview of what would need to be changed.
I think the whole community would be very appreciative.
Just a brief overview of what would need to be changed.
I think the whole community would be very appreciative.
Torque Owner Nathan Martin
TRON 2001 Network
You will need to register the generic mouse HID in order to receive those mouse events via WM_INPUT messages. The best place I could think of right now to put that code, as provided in the MSDN article linked above, is probably within the WM_CREATE message handler within Engine/source/windowManager/win32/win32Window.cpp of function:
You need to implement the WM_INPUT message handler in the following function within Engine/source/windowManager/win32/winDispatch.cpp:
You will also need to change it to where the WM_MOUSEMOVE events are now ignored once you're done with the WM_INPUT handler and probably will also want to drop WM_INPUT messages in the same places that RemoveMessages() function is being called to drop WM_MOUSEMOVE messages.
Have fun. :)