-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkeycomb.h
21 lines (19 loc) · 885 Bytes
/
keycomb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
xrus - keyboard switcher/indicator
Copyright (c) 1996 Alexander V. Lukyanov
This is free software with no warranty.
See COPYING for details.
*/
struct KeyCombination
{
int KeysNum; /* Number of keys in this combination */
KeySym Keys[4]; /* KeySyms of the combinations */
int KeysPressed; /* Bit mask of pressed keys */
int KeysArmed; /* Flag indicating that the combination is armed
and will fire upon release of any of the keys */
void (*Fire)(void); /* Callback */
};
void ParseKeyCombination(const char *str,struct KeyCombination *kc,char *err);
void KeyCombinationProcessKeyPress(struct KeyCombination *kc,KeySym ks);
int KeyCombinationProcessKeyRelease(struct KeyCombination *kc,KeySym ks,int fire);
void PrintParseErrors(const char *resource,char *err);