blob: 3d41a22e5cde7921e0e0fd30d291bf94b3b70701 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "X11/Xlib.h"
#include "X11/keysym.h"
#include "SkKey.h"
#ifndef XKEYS_TOSKKEYS_H
#define XKEYS_TOSKKEYS_H
SkKey XKeyToSkKey(KeySym keysym) {
switch (keysym) {
case XK_Right:
return kRight_SkKey;
case XK_Left:
return kLeft_SkKey;
case XK_Down:
return kDown_SkKey;
case XK_Up:
return kUp_SkKey;
default:
return kNONE_SkKey;
}
}
#endif
|