summaryrefslogtreecommitdiffhomepage
path: root/Private/HALKit
diff options
context:
space:
mode:
Diffstat (limited to 'Private/HALKit')
-rw-r--r--Private/HALKit/AMD64/HalKernelMouse.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Private/HALKit/AMD64/HalKernelMouse.cxx b/Private/HALKit/AMD64/HalKernelMouse.cxx
index 468a595f..6321265a 100644
--- a/Private/HALKit/AMD64/HalKernelMouse.cxx
+++ b/Private/HALKit/AMD64/HalKernelMouse.cxx
@@ -6,6 +6,7 @@
#include <Builtins/PS2/PS2MouseInterface.hxx>
#include <Builtins/Toolbox/Toolbox.hxx>
+#include <Builtins/Toolbox/Rsrc/Cursor.rsrc>
#include <KernelKit/Framebuffer.hpp>
#include <NewKit/Defines.hpp>
@@ -22,6 +23,8 @@ STATIC NewOS::PS2MouseInterface kMousePS2;
STATIC NewOS::Char kMousePacket[4] = {};
STATIC NewOS::Boolean kMousePacketReady = false;
+STATIC ToolboxInitRsrc();
+
#define kPS2Leftbutton 0b00000001
#define kPS2Middlebutton 0b00000010
#define kPS2Rightbutton 0b00000100
@@ -38,7 +41,7 @@ Void hal_handle_mouse() {
switch (kMouseCycle) {
case 0:
if (kMousePacketReady) break;
- if (data & 0b00001000 == 0) break;
+ if ((data & 0b00001000) == 0) break;
kMousePacket[0] = data;
kMouseCycle++;
break;
@@ -149,4 +152,4 @@ EXTERN_C Void _hal_init_mouse() {
HAL::Out8(0x21, 0b11111001);
HAL::Out8(0xA1, 0b11101111);
-} \ No newline at end of file
+}