Visual studio 2005 thinks that long long int is 64 bit. The difference between
[dasher.git] / Src / Win32 / DasherMouseInput.cpp
blobe50e6eb1a2a5a8f6fd8a540908eac6b8546935d5
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
8 #ifdef _WIN32
9 #ifdef _DEBUG
10 #define DEBUG_NEW new( _NORMAL_BLOCK, THIS_FILE, __LINE__ )
11 #define new DEBUG_NEW
12 #undef THIS_FILE
13 static char THIS_FILE[] = __FILE__;
14 #endif
15 #endif
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) {
26 POINT mousepos;
27 GetCursorPos(&mousepos);
29 ScreenToClient(m_hwnd, &mousepos);
31 pCoordinates[0] = mousepos.x;
32 pCoordinates[1] = mousepos.y;
34 return 0;