Beginning of mouse support in DirectInput (only "standard" mouse
configuration supported for now).
diff --git a/include/dinput.h b/include/dinput.h
index de79972..784840e 100644
--- a/include/dinput.h
+++ b/include/dinput.h
@@ -59,6 +59,7 @@
typedef struct IDirectInput32A IDirectInput32A,*LPDIRECTINPUT32A;
typedef struct IDirectInputDevice32A IDirectInputDevice32A,*LPDIRECTINPUTDEVICE32A;
typedef struct SysKeyboard32A SysKeyboard32A,*LPSYSKEYBOARD32A;
+typedef struct SysMouse32A SysMouse32A,*LPSYSMOUSE32A;
#define DI_OK S_OK
#define DI_NOTATTACHED S_FALSE
@@ -522,6 +523,21 @@
GUID guid;
};
+/* "Standard" Mouse report... */
+struct DIMOUSESTATE {
+ LONG lX;
+ LONG lY;
+ LONG lZ;
+ BYTE rgbButtons[4];
+};
+struct SysMouse32A {
+ LPDIRECTINPUTDEVICEA_VTABLE lpvtbl;
+ DWORD ref;
+ GUID guid;
+ BYTE absolute;
+ struct DIMOUSESTATE prevpos;
+};
+
struct SysKeyboard32A {
LPDIRECTINPUTDEVICEA_VTABLE lpvtbl;
DWORD ref;