Augmented keymap struct to support prerequisite keysyms.
This commit is contained in:
parent
acb573b965
commit
6eb3e6d297
@ -38,9 +38,34 @@
|
|||||||
#ifndef _GUAC_RDP_RDP_KEYMAP_H
|
#ifndef _GUAC_RDP_RDP_KEYMAP_H
|
||||||
#define _GUAC_RDP_RDP_KEYMAP_H
|
#define _GUAC_RDP_RDP_KEYMAP_H
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents a keysym-to-scancode mapping for RDP, with extra information
|
||||||
|
* about the state of prerequisite keysyms.
|
||||||
|
*/
|
||||||
typedef struct guac_rdp_keymap {
|
typedef struct guac_rdp_keymap {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The scancode this keysym maps to.
|
||||||
|
*/
|
||||||
int scancode;
|
int scancode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Required RDP-specific flags
|
||||||
|
*/
|
||||||
int flags;
|
int flags;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Null-terminated list of keysyms which must be down for this keysym
|
||||||
|
* to be properly typed.
|
||||||
|
*/
|
||||||
|
int* set_keysyms;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Null-terminated list of keysyms which must be up for this keysym
|
||||||
|
* to be properly typed.
|
||||||
|
*/
|
||||||
|
int* clear_keysyms;
|
||||||
|
|
||||||
} guac_rdp_keymap;
|
} guac_rdp_keymap;
|
||||||
|
|
||||||
extern const guac_rdp_keymap guac_rdp_keysym_scancode[256][256];
|
extern const guac_rdp_keymap guac_rdp_keysym_scancode[256][256];
|
||||||
|
Loading…
Reference in New Issue
Block a user