diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-06-21 18:11:55 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-06-21 21:31:11 +0700 |
commit | 325dca9f212f9fd44cd10a8180529970c7a08c72 (patch) | |
tree | e1cfaec078dfa49f4d51d05eef8a5b0967843a41 /src/MacInput.cpp | |
parent | 10f5376de856ecead4e8bbf66f19157f36f7a382 (diff) | |
download | blackshades-1.2.0.tar.gz |
Remove trailing whitespaces and duplicated blank lines 1.2.0
Diffstat (limited to 'src/MacInput.cpp')
-rw-r--r-- | src/MacInput.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/MacInput.cpp b/src/MacInput.cpp index 512200d..5b7aeda 100644 --- a/src/MacInput.cpp +++ b/src/MacInput.cpp @@ -2,7 +2,7 @@ #include "MacInput.h" /**> Mouse Stuff <**/ -#ifdef OS9 +#ifdef OS9 CursorDevicePtr theCursor; #endif @@ -12,22 +12,21 @@ 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 +#ifdef OS9 void InitMouse() { CursorDeviceNewDevice( &theCursor ); //Mouse |