KeyboardLedState Encoding Masks are now defined for portability

pull/1/head
steven_carr 18 years ago
parent 1955526d45
commit 3dff7658dc

@ -461,6 +461,9 @@ typedef struct {
#define rfbEncodingQualityLevel9 0xFFFFFFE9 #define rfbEncodingQualityLevel9 0xFFFFFFE9
/***************************************************************************** /*****************************************************************************
* *
* Server -> client message definitions * Server -> client message definitions
@ -547,6 +550,21 @@ typedef struct {
* left-to-right within a scanline with no padding in between. * 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 * CopyRect Encoding. The pixels are specified simply by the x and y position

Loading…
Cancel
Save