1 #include "Common\WinCommon.h"
3 #include ".\dashermouseinput.h"
5 using namespace Dasher
;
7 // Track memory leaks on Windows to the line that new'd the memory
10 #define DEBUG_NEW new( _NORMAL_BLOCK, THIS_FILE, __LINE__ )
13 static char THIS_FILE
[] = __FILE__
;
17 CDasherMouseInput::CDasherMouseInput(CEventHandler
* pEventHandler
, CSettingsStore
* pSettingsStore
, HWND _hwnd
)
18 : CDasherInput(pEventHandler
, pSettingsStore
, 0, 0, "Mouse Input"), m_hwnd(_hwnd
) {
21 CDasherMouseInput::~CDasherMouseInput(void) {
24 int CDasherMouseInput::GetCoordinates(int iN
, myint
*pCoordinates
) {
27 GetCursorPos(&mousepos
);
29 ScreenToClient(m_hwnd
, &mousepos
);
31 pCoordinates
[0] = mousepos
.x
;
32 pCoordinates
[1] = mousepos
.y
;