Synchronize with trunk revision 59636 (just before Alex's CreateProcess revamp).
[reactos.git] / drivers / hid / mouhid / mouhid.h
index 39231f5..b1ba4aa 100644 (file)
@@ -5,9 +5,11 @@
 #include <hidclass.h>
 #include <hidpddi.h>
 #include <hidpi.h>
+#define NDEBUG
 #include <debug.h>
 #include <ntddmou.h>
 #include <kbdmou.h>
+#include <debug.h>
 
 
 typedef struct
@@ -23,9 +25,9 @@ typedef struct
     PIRP Irp;
 
     //
-    // event 
+    // event
     //
-    KEVENT Event;
+    KEVENT ReadCompletionEvent;
 
     //
     // device object for class callback
@@ -47,6 +49,11 @@ typedef struct
     //
     USHORT WheelUsagePage;
 
+    //
+    // buffer for the four usage lists below
+    //
+    PVOID UsageListBuffer;
+
     //
     // usage list length
     //
@@ -85,7 +92,7 @@ typedef struct
     //
     // input report buffer
     //
-    PUCHAR Report;
+    PCHAR Report;
 
     //
     // input report length
@@ -97,9 +104,39 @@ typedef struct
     //
     PFILE_OBJECT FileObject;
 
-}MOUHID_DEVICE_EXTENSION, *PMOUHID_DEVICE_EXTENSION;
+    //
+    // report read is active
+    //
+    UCHAR ReadReportActive;
+
+    //
+    // stop reading flag
+    //
+    UCHAR StopReadReport;
+
+    //
+    // mouse absolute
+    //
+    UCHAR MouseAbsolute;
+
+    //
+    // value caps x
+    //
+    HIDP_VALUE_CAPS ValueCapsX;
 
+    //
+    // value caps y button
+    //
+    HIDP_VALUE_CAPS ValueCapsY;
+
+} MOUHID_DEVICE_EXTENSION, *PMOUHID_DEVICE_EXTENSION;
+
+#define WHEEL_DELTA 120
+#define VIRTUAL_SCREEN_SIZE_X (65536)
+#define VIRTUAL_SCREEN_SIZE_Y (65536)
 
 NTSTATUS
 MouHid_InitiateRead(
-    IN PDEVICE_OBJECT DeviceObject);
+    IN PMOUHID_DEVICE_EXTENSION DeviceExtension);
+
+#define MOUHID_TAG 'diHM'