mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-27 06:02:11 +00:00
37 lines
490 B
C++
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
|