Last change
on this file since 3179 was
2995,
checked in by bensch, 20 years ago
|
orxonox/trunk: merged branches/osX back into the Trunk.
Conflicts resolved in Favor of trunk in all the Makefiles, and fixed many strange entries in configure.ac
merged with command: svn merge branches/osX/ trunk/ -r 2887:HEAD
AND most Important of all: change back to AUTOMAKE-1.7
|
File size:
1.2 KB
|
Rev | Line | |
---|
[2066] | 1 | /*! |
---|
| 2 | \file keynames.h |
---|
| 3 | \brief Key/button naming functions |
---|
| 4 | |
---|
[2551] | 5 | Converts strings to SDLK/SDL_BUTTON values and vice versa |
---|
[2141] | 6 | */ |
---|
[2551] | 7 | |
---|
| 8 | #ifdef __WIN32__ |
---|
| 9 | #include <windows.h> |
---|
| 10 | #endif |
---|
| 11 | |
---|
[2995] | 12 | #ifndef __APPLE__ |
---|
[2551] | 13 | #include <SDL/SDL.h> |
---|
[2995] | 14 | #else |
---|
| 15 | #include <SDL.h> |
---|
| 16 | #endif |
---|
[2551] | 17 | |
---|
[2141] | 18 | /** |
---|
[2551] | 19 | \brief converts a button name string to a integer representing the corresponding SDL mouse button identifier |
---|
| 20 | \param name: the name of the mouse button |
---|
| 21 | \return an int containing the SDL identifier of the mouse button or -1 if the button name is not valid |
---|
[2141] | 22 | */ |
---|
[2551] | 23 | int buttonname_to_SDLB( char* name); |
---|
| 24 | |
---|
[2141] | 25 | /** |
---|
[2551] | 26 | \brief converst a SDL mouse button identifier to a name string |
---|
| 27 | \param button: an SDL mouse button identifier |
---|
| 28 | \return a pointer to a string containing the name of the mouse button |
---|
[2141] | 29 | */ |
---|
[2551] | 30 | char* SDLB_to_buttonname( int button); |
---|
| 31 | |
---|
| 32 | /** |
---|
| 33 | \brief converts a key name string to a integer representing the corresponding SDLK sym |
---|
| 34 | \param name: the name of the key |
---|
| 35 | \return the SDLK sym of the named key or -1 if the key name is not valid |
---|
| 36 | */ |
---|
| 37 | int keyname_to_SDLK( char* name); |
---|
| 38 | |
---|
| 39 | /** |
---|
| 40 | \brief converts an SDLK sym to a name string |
---|
| 41 | \param key: the SDLK sym |
---|
| 42 | \return a pointer to a string containig the name of the key |
---|
| 43 | */ |
---|
[2066] | 44 | char* SDLK_to_keyname( int key); |
---|
[2551] | 45 | |
---|
Note: See
TracBrowser
for help on using the repository browser.