#include <stdlib.h>
#include "keys.h"
Data Structures | |
struct | keys_vnc_hf_mapping |
Keycode mapping entry. More... | |
Functions | |
static int | keys_compare_mapping (const void *a, const void *b) |
int | keys_translate_vnc_hf (rfbKeySym vnc_key, rfbKeySym *hf_key, rfbKeySym *hf_modifier) |
int | keys_is_xk_modifier (rfbKeySym xk_key) |
Variables | |
static struct keys_vnc_hf_mapping | key_mapping [] |
const int | keys_mapping_size |
static int keys_compare_mapping | ( | const void * | a, | |
const void * | b | |||
) | [static] |
Comparison function for keycode mapping entries.
a | mapping entry | |
b | mapping entry |
int keys_translate_vnc_hf | ( | rfbKeySym | vnc_key, | |
rfbKeySym * | hf_key, | |||
rfbKeySym * | hf_modifier | |||
) |
Translates VNC keycodes into Hifidelio keycodes.
vnc_key | VNC keycode | |
hf_key | Hifidelio keycode (return value) | |
hf_modifier | Hifidelio key modifier code (return value) |
int keys_is_xk_modifier | ( | rfbKeySym | xk_key | ) |
Checks if a given XK keycode belongs to a key modifier.
xk_key | XK keycode |
struct keys_vnc_hf_mapping key_mapping[] [static] |
Keycode mapping array.
const int keys_mapping_size |
Initial value:
sizeof(key_mapping)/sizeof(struct keys_vnc_hf_mapping)