View Single Post
Old 10-19-2012, 11:00 PM   #187
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Okay. So call me stupid but I think I get it.

SDL needs to be serviced by the matchbox events. Thus SDL is in fact the application that needs the code that supports matchbox in evilvte shuffling over to SDL.

Will think on that now. Noted likely locations for that code in
/~/GIT/k5ctng/output/build/sdl-1.2.15/src/video/x11/SDL_x11video.c

Quote:
/* Set the input hints so we get keyboard input */
if(!hints) {
hints = XAllocWMHints();
hints->input = True;
hints->flags = InputHint;
}
XSetWMHints(SDL_Display, WMwindow, hints);
XFree(hints);
and

Quote:
/* Update the internal keyboard state */
X11_SetKeyboardState(SDL_Display, NULL);

/* When the window is first mapped, ignore non-modifier keys */
if ( !current->w && !current->h ) {
Uint8 *keys = SDL_GetKeyState(NULL);
int i;
for ( i = 0; i < SDLK_LAST; ++i ) {
switch (i) {
case SDLK_NUMLOCK:
case SDLK_CAPSLOCK:
case SDLK_LCTRL:
case SDLK_RCTRL:
case SDLK_LSHIFT:
case SDLK_RSHIFT:
case SDLK_LALT:
case SDLK_RALT:
case SDLK_LMETA:
case SDLK_RMETA:
case SDLK_MODE:
break;
default:
keys[i] = SDL_RELEASED;
break;
}
}
}
will explore more tomorrow. Thanks for listening. feel free to help out with suggestions thanks
twobob is offline   Reply With Quote