b7e9aee1ac
git-svn-id: http://skia.googlecode.com/svn/trunk@938 2bbb7eff-a529-9590-31e7-b0007b416f81
24 lines
453 B
C
24 lines
453 B
C
#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
|