Changeset 3238 in orxonox.OLD for orxonox/branches/sound/src/keynames.h
- Timestamp:
- Dec 20, 2004, 2:42:54 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/sound/src/keynames.h
r2551 r3238 5 5 Converts strings to SDLK/SDL_BUTTON values and vice versa 6 6 */ 7 #ifndef _KEYNAMES_H 8 #define _KEYNAMES_H 9 7 10 8 11 #ifdef __WIN32__ … … 10 13 #endif 11 14 15 #ifndef __APPLE__ 12 16 #include <SDL/SDL.h> 17 #else 18 #include <SDL.h> 19 #endif 13 20 14 21 /** … … 17 24 \return an int containing the SDL identifier of the mouse button or -1 if the button name is not valid 18 25 */ 19 int buttonname _to_SDLB( char* name);26 int buttonnameToSDLB( char* name); 20 27 21 28 /** … … 24 31 \return a pointer to a string containing the name of the mouse button 25 32 */ 26 char* SDLB _to_buttonname( int button);33 char* SDLBToButtonname( int button); 27 34 28 35 /** … … 31 38 \return the SDLK sym of the named key or -1 if the key name is not valid 32 39 */ 33 int keyname _to_SDLK( char* name);40 int keynameToSDLK( char* name); 34 41 35 42 /** … … 38 45 \return a pointer to a string containig the name of the key 39 46 */ 40 char* SDLK _to_keyname( int key);47 char* SDLKToKeyname( int key); 41 48 49 50 #endif /* _KEYNAMES_H */
Note: See TracChangeset
for help on using the changeset viewer.