|
Last change
on this file since 2096 was
2066,
checked in by chris, 21 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
|
| Line | |
|---|
| 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.