+// _SysDebug("Mouse to %i,%i", axies[0].CursorPos, axies[1].CursorPos);
+
+ WM_Input_MouseMoved(
+ giInput_MouseX, giInput_MouseY,
+ axies[0].CursorPos, axies[1].CursorPos
+ );
+ giInput_MouseX = axies[0].CursorPos;
+ giInput_MouseY = axies[1].CursorPos;
+
+ for( i = 0; i < mouseinfo->NButtons; i ++ )
+ {
+ int bit = 1 << i;
+ int cur = buttons[i] > 128;
+
+ if( !!(giInput_MouseButtonState & bit) != cur )
+ {
+ WM_Input_MouseButton(giInput_MouseX, giInput_MouseY, i, cur);
+ // Flip button state
+ giInput_MouseButtonState ^= bit;
+ }
+ }