Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/chris/src/keynames.h @ 2105

Last change on this file since 2105 was 2066, checked in by chris, 20 years ago

orxonox/branches/chris: Implemented CommandNode (Keyboard handling), created some functions to convert key names to identifyers and vice versa, ensured it compiles (when compiled spereately) added a header to hold global message structures

File size: 355 bytes
RevLine 
[2066]1/*!
2    \file keynames.h
3    \brief Key/button naming functions
4   
5                Converts strings to SDLK/SDL_BUTTON values and vice versa
6*/
7
8#ifdef __WIN32__
9#include <windows.h>
10#endif
11
12#include <SDL/SDL.h>
13
14int buttonname_to_SDLB( char* name);
15char* SDLB_to_buttonname( int button);
16int keyname_to_SDLK( char* name);
17char* SDLK_to_keyname( int key);
18
Note: See TracBrowser for help on using the repository browser.