summaryrefslogtreecommitdiffhomepage
path: root/nGenEx/Mouse.h
diff options
context:
space:
mode:
Diffstat (limited to 'nGenEx/Mouse.h')
-rw-r--r--nGenEx/Mouse.h82
1 files changed, 41 insertions, 41 deletions
diff --git a/nGenEx/Mouse.h b/nGenEx/Mouse.h
index 3f6e4ee..09cb83f 100644
--- a/nGenEx/Mouse.h
+++ b/nGenEx/Mouse.h
@@ -1,15 +1,15 @@
/* Project nGenEx
- Destroyer Studios LLC
- Copyright © 1997-2004. All Rights Reserved.
+ Destroyer Studios LLC
+ Copyright © 1997-2004. All Rights Reserved.
- SUBSYSTEM: nGenEx.lib
- FILE: Mouse.h
- AUTHOR: John DiCamillo
+ SUBSYSTEM: nGenEx.lib
+ FILE: Mouse.h
+ AUTHOR: John DiCamillo
- OVERVIEW
- ========
- Mouse class
+ OVERVIEW
+ ========
+ Mouse class
*/
#ifndef Mouse_h
@@ -27,48 +27,48 @@ class Window;
class Mouse
{
- friend LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
- friend class Game;
+ friend LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
+ friend class Game;
public:
- static const char* TYPENAME() { return "Mouse"; }
+ static const char* TYPENAME() { return "Mouse"; }
- enum CURSOR { ARROW, CROSS, WAIT, NOT, DRAG, USER1, USER2, USER3 };
- enum HOTSPOT { HOTSPOT_CTR, HOTSPOT_NW };
+ enum CURSOR { ARROW, CROSS, WAIT, NOT, DRAG, USER1, USER2, USER3 };
+ enum HOTSPOT { HOTSPOT_CTR, HOTSPOT_NW };
- static int X() { return x; }
- static int Y() { return y; }
- static int LButton() { return l; }
- static int MButton() { return m; }
- static int RButton() { return r; }
- static int Wheel() { return w; }
+ static int X() { return x; }
+ static int Y() { return y; }
+ static int LButton() { return l; }
+ static int MButton() { return m; }
+ static int RButton() { return r; }
+ static int Wheel() { return w; }
- static void Paint();
+ static void Paint();
- static void SetCursorPos(int x, int y);
- static void Show(int s=1);
- static int SetCursor(CURSOR c);
- static int LoadCursor(CURSOR c, const char* name, HOTSPOT hs = HOTSPOT_CTR);
+ static void SetCursorPos(int x, int y);
+ static void Show(int s=1);
+ static int SetCursor(CURSOR c);
+ static int LoadCursor(CURSOR c, const char* name, HOTSPOT hs = HOTSPOT_CTR);
- static void Create(Screen* screen);
- static void Resize(Screen* screen);
- static void Close();
+ static void Create(Screen* screen);
+ static void Resize(Screen* screen);
+ static void Close();
private:
- static int show;
- static int cursor;
-
- static int x;
- static int y;
- static int l;
- static int m;
- static int r;
- static int w;
-
- static Bitmap* image[8];
- static int hotspot[8];
-
- static Window* window;
+ static int show;
+ static int cursor;
+
+ static int x;
+ static int y;
+ static int l;
+ static int m;
+ static int r;
+ static int w;
+
+ static Bitmap* image[8];
+ static int hotspot[8];
+
+ static Window* window;
};
#endif Mouse_h