I am making simple actor that should be controlled by the 3D Connexion mouse using their SDK.
Following their example I need this kind of while loop that gets events from mouse:
MSG msg; /* incoming message to be evaluated */
BOOL handled; /* is message handled yet */
SiSpwEvent Event; /* SpaceWare Event */
SiGetEventData EData; /* SpaceWare Event Data */
handled = SPW_FALSE; /* init handled */
/* start message loop */
while (GetMessage(&msg, NULL, 0, 0)){
handled = SPW_FALSE;
/* init Window platform specific data for a call to SiGetEvent */
SiGetEventWinInit(&EData, msg.message, msg.wParam, msg.lParam);
etc. etc.
}
Problem is that I can not get MSG which is a typedef in WinUtil.h, or BOOL which is part of Windows Type Definitions.
How do I go about this?
Also would it be possible to support this type of mouse not only in unreal editor but also in games?
Thanks,
Ilija