summaryrefslogtreecommitdiff
path: root/test/testime.c
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2010-05-09 20:47:22 -0700
committerSam Lantinga <slouken@libsdl.org>2010-05-09 20:47:22 -0700
commit338f95eb06f26846ab1a8a9d6e9a687564137a5e (patch)
treee22d3571f1e0db6a11243bd30df092a178a89893 /test/testime.c
parentd12afdaedbe72a4058c63c526a1f4ff80b2594ae (diff)
Removed multi-mouse / multi-keyboard support in anticipation of a real multi-mouse and multi-touch API.
Plus, this lets me start implementing cursor support.
Diffstat (limited to 'test/testime.c')
-rw-r--r--test/testime.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/testime.c b/test/testime.c
index cf6768ac..6975d652 100644
--- a/test/testime.c
+++ b/test/testime.c
@@ -279,8 +279,8 @@ int main(int argc, char *argv[])
}
fprintf(stderr,
- "Keyboard %d: scancode 0x%08X = %s, keycode 0x%08X = %s\n",
- event.key.which, event.key.keysym.scancode,
+ "Keyboard: scancode 0x%08X = %s, keycode 0x%08X = %s\n",
+ event.key.keysym.scancode,
SDL_GetScancodeName(event.key.keysym.scancode),
event.key.keysym.sym, SDL_GetKeyName(event.key.keysym.sym));
break;
@@ -290,8 +290,7 @@ int main(int argc, char *argv[])
markedRect.w < 0)
break;
- fprintf(stderr, "Keyboard %d: text input \"%s\"\n",
- event.text.which, event.text.text);
+ fprintf(stderr, "Keyboard: text input \"%s\"\n", event.text.text);
if (SDL_strlen(text) + SDL_strlen(event.text.text) < sizeof(text))
strcpy(text + SDL_strlen(text), event.text.text);