mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-06 01:19:44 +00:00
number
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@247 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -182,11 +182,10 @@ void MwLLNextEvent(MwLL handle) {
|
||||
|
||||
MwLLDispatch(handle, move, &p);
|
||||
} else if(ev.type == KeyPress) {
|
||||
int n = -1;
|
||||
KeySym sym = XLookupKeysym(&ev.xkey, 0);
|
||||
char* str = XKeysymToString(sym);
|
||||
|
||||
if(strcmp(str, "space") == 0) str = " ";
|
||||
int n = -1;
|
||||
char str[512];
|
||||
KeySym sym;
|
||||
XLookupString(&ev.xkey, str, 512, &sym, NULL);
|
||||
|
||||
/* HACK: this is bad, you can guess why */
|
||||
if(strlen(str) == 1) {
|
||||
|
||||
Reference in New Issue
Block a user