aboutsummaryrefslogtreecommitdiff
path: root/Source/Support.cpp
diff options
context:
space:
mode:
authortheoddone33 <theoddone33@5198baeb-e213-0410-be47-fc2ff85ca46f>2003-01-09 10:13:12 +0000
committertheoddone33 <theoddone33@5198baeb-e213-0410-be47-fc2ff85ca46f>2003-01-09 10:13:12 +0000
commit6f135aab1bf6f8fa9b3cb7b397bb5ac8724c1aaa (patch)
tree2fbbcecaa6a55a0add9cbe5a7efced90f4775f1c /Source/Support.cpp
parent1339813cef051daa74110bc53f1037c83d9fc9fb (diff)
downloadblackshades-6f135aab1bf6f8fa9b3cb7b397bb5ac8724c1aaa.tar.gz
Made game fun as opposed to crapulent
git-svn-id: svn://svn.icculus.org/blackshades/trunk@73 5198baeb-e213-0410-be47-fc2ff85ca46f
Diffstat (limited to 'Source/Support.cpp')
-rw-r--r--Source/Support.cpp10
1 files changed, 10 insertions, 0 deletions
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));