aboutsummaryrefslogtreecommitdiff
path: root/Source/MacInput.cpp
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-06-17 14:20:54 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-06-17 14:22:53 +0700
commit602a0c5951050e7cce645534cb4f136cf9f4fee4 (patch)
treee70e63b0b0058830e58c244ad917bc892c10418f /Source/MacInput.cpp
parent094e12df1ebb81d304803be4b274546384ec117c (diff)
downloadblackshades-602a0c5951050e7cce645534cb4f136cf9f4fee4.tar.gz
Rename source and build directory1.1.1
Diffstat (limited to 'Source/MacInput.cpp')
-rw-r--r--Source/MacInput.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/Source/MacInput.cpp b/Source/MacInput.cpp
deleted file mode 100644
index 512200d..0000000
--- a/Source/MacInput.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-/**> HEADER FILES <**/
-#include "MacInput.h"
-
-/**> Mouse Stuff <**/
-#ifdef OS9
-CursorDevicePtr theCursor;
-#endif
-
-/********************> IsKeyDown() <*****/
-Boolean IsKeyDown( unsigned char *keyMap, unsigned short theKey )
-{
- long keyMapIndex;
- Boolean isKeyDown;
- short bitToCheck;
-
- // Calculate the key map index
- keyMapIndex = keyMap[theKey/8];
-
- // Calculate the individual bit to check
- bitToCheck = theKey%8;
-
- // Check the status of the key
- isKeyDown = ( keyMapIndex >> bitToCheck ) & 0x01;
-
- // Return the status of the key
- return isKeyDown;
-
-}
-
-#ifdef OS9
-void InitMouse()
-{
- CursorDeviceNewDevice( &theCursor ); //Mouse
-}
-
-void MoveMouse(int xcoord, int ycoord, Point *mouseloc)
-{
- CursorDeviceMoveTo( theCursor, xcoord, ycoord);
- GetMouse(mouseloc);
-}
-
-void DisposeMouse()
-{
- CursorDeviceDisposeDevice( theCursor );//Mouse
-}
-#endif