Menu

#2 Key events not responding

open
nobody
None
5
2007-01-23
2007-01-23
AcidHorse
No

BEGIN "OGLCONSOLE.C"
LINE 733-ish
---------------------------------------------------------
/* TODO: SDL_KEYPRESS? ENABLE KEY REPEAT USING THE HIDE/SHOW FUNCTION? */
if (e->type == SDL_KEYDOWN)
{
/* Reject most modifier keys TODO: Add some accelerator keys? */
/* Obviously this is where the code is screwed up */

//if (e->key.keysym.mod & ~(KMOD_CAPITALIZE))
// return 0;

    /\* Now we work just fine \*/

/* Check for hide key */
if (e->key.keysym.sym == '`')
{
---------------------------------------------------------
END

Discussion


Log in to post a comment.

MongoDB Logo MongoDB