UltimateZoneBuilder/Source/Native/RawMouse.h
2019-08-18 03:29:33 +02:00

37 lines
490 B
C++

#pragma once
#ifdef WIN32
class RawMouse
{
public:
RawMouse(void* ownerWindow);
~RawMouse();
float GetX();
float GetY();
private:
LRESULT OnMessage(INT message, WPARAM wparam, LPARAM lparam);
static LRESULT CALLBACK WindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
HWND handle = 0;
int x = 0;
int y = 0;
friend class RawMouseWindowClass;
};
#else
class RawMouse
{
public:
RawMouse(void* ownerWindow);
~RawMouse();
float GetX();
float GetY();
};
#endif