Changeset 2141 in orxonox.OLD for orxonox/branches/chris/src/keynames.h
- Timestamp:
- Jul 14, 2004, 3:31:42 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/chris/src/keynames.h
r2066 r2141 12 12 #include <SDL/SDL.h> 13 13 14 /** 15 \brief converts a button name string to a integer representing the corresponding SDL mouse button identifier 16 \param name: the name of the mouse button 17 \return an int containing the SDL identifier of the mouse button or -1 if the button name is not valid 18 */ 14 19 int buttonname_to_SDLB( char* name); 20 21 /** 22 \brief converst a SDL mouse button identifier to a name string 23 \param button: an SDL mouse button identifier 24 \return a pointer to a string containing the name of the mouse button 25 */ 15 26 char* SDLB_to_buttonname( int button); 27 28 /** 29 \brief converts a key name string to a integer representing the corresponding SDLK sym 30 \param name: the name of the key 31 \return the SDLK sym of the named key or -1 if the key name is not valid 32 */ 16 33 int keyname_to_SDLK( char* name); 34 35 /** 36 \brief converts an SDLK sym to a name string 37 \param key: the SDLK sym 38 \return a pointer to a string containig the name of the key 39 */ 17 40 char* SDLK_to_keyname( int key); 18 41
Note: See TracChangeset
for help on using the changeset viewer.