Changeset 4836 in orxonox.OLD for orxonox/trunk/src/lib/event/key_names.h
- Timestamp:
- Jul 12, 2005, 12:33:16 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/event/key_names.h
r4780 r4836 1 1 /*! 2 2 \file keynames.h 3 \briefKey/button naming functions3 * Key/button naming functions 4 4 5 5 Converts strings to SDLK/SDL_BUTTON values and vice versa … … 9 9 10 10 /** 11 \briefconverts a button name string to a integer representing the corresponding SDL mouse button identifier12 \param name: the name of the mouse button13 \return an int containing the SDL identifier of the mouse button or -1 if the button name is not valid11 * converts a button name string to a integer representing the corresponding SDL mouse button identifier 12 * @param name: the name of the mouse button 13 * @return an int containing the SDL identifier of the mouse button or -1 if the button name is not valid 14 14 */ 15 15 int buttonnameToSDLB(const char* name); 16 16 17 17 /** 18 \briefconverst a SDL mouse button identifier to a name string19 \param button: an SDL mouse button identifier20 \return a pointer to a string containing the name of the mouse button18 * converst a SDL mouse button identifier to a name string 19 * @param button: an SDL mouse button identifier 20 * @return a pointer to a string containing the name of the mouse button 21 21 */ 22 22 char* SDLBToButtonname( int button); 23 23 24 24 /** 25 \briefconverts a key name string to a integer representing the corresponding SDLK sym26 \param name: the name of the key27 \return the SDLK sym of the named key or -1 if the key name is not valid25 * converts a key name string to a integer representing the corresponding SDLK sym 26 * @param name: the name of the key 27 * @return the SDLK sym of the named key or -1 if the key name is not valid 28 28 */ 29 29 int keynameToSDLK(const char* name); 30 30 31 31 /** 32 \briefconverts an SDLK sym to a name string33 \param key: the SDLK sym34 \return a pointer to a string containig the name of the key32 * converts an SDLK sym to a name string 33 * @param key: the SDLK sym 34 * @return a pointer to a string containig the name of the key 35 35 */ 36 36 char* SDLKToKeyname( int key);
Note: See TracChangeset
for help on using the changeset viewer.