summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorKoichiro IWAO <meta@vmeta.jp>2017-10-30 16:23:14 +0900
committermetalefty <meta@vmeta.jp>2017-11-06 16:18:42 +0900
commit27aef96e81c498905413e532ab75648df7d89905 (patch)
tree918610e0d67624357fa47e20229e1636998a864f /common
parent8e7e54e49f7e09e327f448da5501465500e4843f (diff)
downloadxrdp-proprietary-27aef96e81c498905413e532ab75648df7d89905.tar.gz
xrdp-proprietary-27aef96e81c498905413e532ab75648df7d89905.zip
Constify mouse event flags, use the MS name for constants
Diffstat (limited to 'common')
-rw-r--r--common/xrdp_constants.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/common/xrdp_constants.h b/common/xrdp_constants.h
index 94376cb6..76c12c13 100644
--- a/common/xrdp_constants.h
+++ b/common/xrdp_constants.h
@@ -190,13 +190,16 @@
#define RDP_KEYPRESS 0
#define RDP_KEYRELEASE (KBD_FLAG_DOWN | KBD_FLAG_UP)
-#define MOUSE_FLAG_MOVE 0x0800
-#define MOUSE_FLAG_BUTTON1 0x1000
-#define MOUSE_FLAG_BUTTON2 0x2000
-#define MOUSE_FLAG_BUTTON3 0x4000
-#define MOUSE_FLAG_BUTTON4 0x0280
-#define MOUSE_FLAG_BUTTON5 0x0380
-#define MOUSE_FLAG_DOWN 0x8000
+/* Mouse Event (MS-RDPBCGR 2.2.8.1.1.3.1.1.3) */
+#define PTRFLAGS_HWHEEL 0x0400
+#define PTRFLAGS_WHEEL 0x0200
+#define PTRFLAGS_WHEEL_NEGATIVE 0x0100
+#define WheelRorationMask 0x01FF
+#define PTRFLAGS_MOVE 0x0800
+#define PTRFLAGS_DOWN 0x8000
+#define PTRFLAGS_BUTTON1 0x1000
+#define PTRFLAGS_BUTTON2 0x2000
+#define PTRFLAGS_BUTTON3 0x4000
/* Raster operation masks */
#define ROP2_S(rop3) (rop3 & 0xf)