summaryrefslogtreecommitdiffstats
path: root/rfb
diff options
context:
space:
mode:
authorsteven_carr <steven_carr>2006-05-28 20:41:32 +0000
committersteven_carr <steven_carr>2006-05-28 20:41:32 +0000
commit3dff7658dcd42f6fb5fcd571155443f4525a48ca (patch)
treede176f7bef0f5d0f626a47bcc1abd952d41d8a8f /rfb
parent1955526d45fd151551af4384b7d58515fea67f84 (diff)
downloadlibvncserver-3dff7658dcd42f6fb5fcd571155443f4525a48ca.zip
libvncserver-3dff7658dcd42f6fb5fcd571155443f4525a48ca.tar.gz
KeyboardLedState Encoding Masks are now defined for portability
Diffstat (limited to 'rfb')
-rw-r--r--rfb/rfbproto.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/rfb/rfbproto.h b/rfb/rfbproto.h
index 4d5812a..6c68cbf 100644
--- a/rfb/rfbproto.h
+++ b/rfb/rfbproto.h
@@ -461,6 +461,9 @@ typedef struct {
#define rfbEncodingQualityLevel9 0xFFFFFFE9
+
+
+
/*****************************************************************************
*
* Server -> client message definitions
@@ -547,6 +550,21 @@ typedef struct {
* left-to-right within a scanline with no padding in between.
*/
+/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ * KeyboardLedState Encoding. The X coordinate contains the Locked Modifiers
+ * so that a remote troubleshooter can identify that the users 'Caps Lock'
+ * is set... (It helps a *lot* when the users are untrained)
+ */
+#define rfbKeyboardMaskShift 1
+#define rfbKeyboardMaskCapsLock 2
+#define rfbKeyboardMaskControl 4
+#define rfbKeyboardMaskAlt 8
+#define rfbKeyboardMaskMeta 16
+#define rfbKeyboardMaskSuper 32
+#define rfbKeyboardMaskHyper 64
+#define rfbKeyboardMaskNumLock 128
+#define rfbKeyboardMaskScrollLock 256
+#define rfbKeyboardMaskAltGraph 512
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* CopyRect Encoding. The pixels are specified simply by the x and y position
OpenPOWER on IntegriCloud