mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
remove unused function GetMouseCoords
This commit is contained in:
@ -342,38 +342,6 @@ bool TGRunTOSDialog ()
|
|||||||
return (StrCmp (Buf, "accepted") == 0);
|
return (StrCmp (Buf, "accepted") == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetMouseCoords(HWND hWnd, WPARAM wParam, LPARAM lParam, int* xPos, int* yPos, int* fwKeys)
|
|
||||||
{
|
|
||||||
POINT pt;
|
|
||||||
pt.x=LOWORD(lParam);
|
|
||||||
pt.y=HIWORD(lParam);
|
|
||||||
#if 0
|
|
||||||
if (ClientToScreen(hWnd, &pt) == false)
|
|
||||||
HSDebugProc("Error converting client mouse coords to screen");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (xPos)
|
|
||||||
*xPos = pt.x; // horizontal position of cursor
|
|
||||||
if (yPos)
|
|
||||||
*yPos = pt.y; // vertical position of cursor
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
char str[128];
|
|
||||||
sprintf(str, "mx=%d my=%d\n", pt.x, pt.y);
|
|
||||||
hsStatusMessage(str);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (fwKeys)
|
|
||||||
*fwKeys = wParam; // key flags
|
|
||||||
|
|
||||||
// key flag bits
|
|
||||||
// MK_CONTROL Set if the CTRL key is down.
|
|
||||||
// MK_LBUTTON Set if the left mouse button is down.
|
|
||||||
// MK_MBUTTON Set if the middle mouse button is down.
|
|
||||||
// MK_RBUTTON Set if the right mouse button is down.
|
|
||||||
// MK_SHIFT Set if the SHIFT key is down.
|
|
||||||
}
|
|
||||||
|
|
||||||
void DebugMsgF(const char* format, ...);
|
void DebugMsgF(const char* format, ...);
|
||||||
|
|
||||||
// Handles all the windows messages we might receive
|
// Handles all the windows messages we might receive
|
||||||
|
Reference in New Issue
Block a user