Mercurial > sdl-ios-xcode
view test/testkeys.c @ 672:5955fa16d4b8
Date: Mon, 28 Jul 2003 18:30:50 +0300
From: "Mike Gorchak"
Subject: New test for overlays
While writting QNX Photon Overlay code I've found that the existent overlay test application is not enough, it performs too artificial tests - it always moves/resizes the overlay's viewport, but in the real life that happens very rare. So I decided to write new test (commonly base on testoverlay.c code) and called it testoverlay2 :)
moose.dat - raw 8 bit paletted data of the small movie. (It was a moose.gif, also included in the attachment as reference, but not needed for this test, it is just for information). I cannot find, who created this .gif, so no credits this time :) But over inet I saw this gif zillion times, so I think we do not infringing somebody rights :)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 08 Aug 2003 21:31:18 +0000 |
parents | 74212992fb08 |
children | d93862a3d821 |
line wrap: on
line source
/* Print out all the keysyms we have, just to verify them */ #include <stdio.h> #include <ctype.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); }