--- a/test/checkkeys.c Thu May 28 09:33:47 2015 -0700
+++ b/test/checkkeys.c Thu May 28 09:52:48 2015 -0700
@@ -89,6 +89,20 @@
}
static void
+PrintModifierState()
+{
+ char message[512];
+ char *spot;
+ size_t left;
+
+ spot = message;
+ left = sizeof(message);
+
+ print_modifiers(&spot, &left);
+ SDL_Log("Initial state:%s\n", message);
+}
+
+static void
PrintKey(SDL_Keysym * sym, SDL_bool pressed, SDL_bool repeat)
{
char message[512];
@@ -200,6 +214,10 @@
SDL_StartTextInput();
+ /* Print initial modifier state */
+ SDL_PumpEvents();
+ PrintModifierState();
+
/* Watch keystrokes */
done = 0;