First pass of new SDL scancode concept for X11.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402717
This commit is contained in:
parent
671a7085d9
commit
49f4428692
14 changed files with 839 additions and 1031 deletions
|
@ -91,6 +91,7 @@ PrintKey(SDL_keysym * sym, int pressed)
|
|||
static void
|
||||
PrintText(char *text)
|
||||
{
|
||||
printf("Text: %s\n", text);
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -124,13 +125,6 @@ main(int argc, char *argv[])
|
|||
quit(2);
|
||||
}
|
||||
|
||||
/* Enable UNICODE translation for keyboard input */
|
||||
SDL_EnableUNICODE(1);
|
||||
|
||||
/* Enable auto repeat for keyboard input */
|
||||
SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY,
|
||||
SDL_DEFAULT_REPEAT_INTERVAL);
|
||||
|
||||
/* Watch keystrokes */
|
||||
done = 0;
|
||||
while (!done) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue