Last change
on this file since 2101 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
|
Rev | Line | |
---|
[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 | |
---|
| 14 | int buttonname_to_SDLB( char* name); |
---|
| 15 | char* SDLB_to_buttonname( int button); |
---|
| 16 | int keyname_to_SDLK( char* name); |
---|
| 17 | char* SDLK_to_keyname( int key); |
---|
| 18 | |
---|
Note: See
TracBrowser
for help on using the repository browser.