Mercurial > sdl-ios-xcode
view test/testkeys.c @ 2270:d5a11262f067
Date: Sun, 19 Aug 2007 18:29:28 +0200
From: Christian Walther
Subject: Re: SDL 1.3 keyboard plan
> 2007-08-18 19:15:51.454 checkkeys[5795] *** _NSAutoreleaseNoPool():
> Object 0x532750 of class NSSelectionArray autoreleased with no pool
> in place - just leaking
This is fixed by the attached patch.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 19 Aug 2007 16:36:51 +0000 |
parents | c121d94672cb |
children | 1a8bab15a45d |
line wrap: on
line source
/* Print out all the keysyms we have, just to verify them */ #include <stdio.h> #include <ctype.h> #include <stdlib.h> #include <string.h> #include "SDL.h" int main(int argc, char *argv[]) { SDLKey key; if (SDL_Init(SDL_INIT_VIDEO) < 0) { fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError()); exit(1); } for (key = SDLK_FIRST; key < SDLK_LAST; ++key) { printf("Key #%d, \"%s\"\n", key, SDL_GetKeyName(key)); } SDL_Quit(); return (0); }