From 6f135aab1bf6f8fa9b3cb7b397bb5ac8724c1aaa Mon Sep 17 00:00:00 2001 From: theoddone33 Date: Thu, 9 Jan 2003 10:13:12 +0000 Subject: Made game fun as opposed to crapulent git-svn-id: svn://svn.icculus.org/blackshades/trunk@73 5198baeb-e213-0410-be47-fc2ff85ca46f --- Source/Support.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Source/Support.cpp') diff --git a/Source/Support.cpp b/Source/Support.cpp index 5038d50..2e37ff4 100644 --- a/Source/Support.cpp +++ b/Source/Support.cpp @@ -39,6 +39,16 @@ void GetMouse(Point *p) p->v = y; } +void GetMouseRel(Point *p) +{ + int x; + int y; + + SDL_GetRelativeMouseState(&x, &y); + + p->h = x; + p->v = y; +} int Button(void) { return (SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(1)); -- cgit v1.2.3