Changeset 3238 in orxonox.OLD for orxonox/branches/sound/src/keynames.cc
- Timestamp:
- Dec 20, 2004, 2:42:54 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/sound/src/keynames.cc
r2551 r3238 13 13 co-programmer: ... 14 14 */ 15 #include <SDL/SDL.h>16 15 17 16 #include "keynames.h" … … 21 20 using namespace std; 22 21 23 int buttonname _to_SDLB( char* name)22 int buttonnameToSDLB( char* name) 24 23 { 25 24 if( !strcmp (name, "BUTTON_LEFT")) return SDL_BUTTON_LEFT; … … 31 30 } 32 31 33 char* SDLB _to_buttonname( int button)32 char* SDLBToButtonname( int button) 34 33 { 35 34 if( button == SDL_BUTTON_LEFT) return "BUTTON_LEFT"; … … 41 40 } 42 41 43 int keyname _to_SDLK( char* name)42 int keynameToSDLK( char* name) 44 43 { 45 44 if( !strcmp (name, "BACKSPACE")) return SDLK_BACKSPACE; … … 179 178 } 180 179 181 char* SDLK _to_keyname( int key)180 char* SDLKToKeyname( int key) 182 181 { 183 182 if( key == SDLK_BACKSPACE) return "BACKSPACE";
Note: See TracChangeset
for help on using the changeset viewer.