Changeset 7661 in orxonox.OLD for trunk/src/lib/event/key_names.h
- Timestamp:
- May 18, 2006, 12:55:34 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/event/key_names.h
r7221 r7661 11 11 12 12 /** 13 * converts a button name string to a integer representing the corresponding SDL mouse button identifier 13 * @brief converts an EVKey into a String, naming the Event. 14 * @param key the Key (either key or button) to convert. 15 * @returns the String containing the Event. 16 */ 17 std::string EVToKeyName(int key); 18 /** 19 * @brief converts a KeyName into an Event. 20 * @param keyName the Key to transform. 21 * @returns the Event-Number 22 */ 23 int KeyNameToEV(const std::string& keyName); 24 25 26 /** 27 * @brief converts a button name string to a integer representing the corresponding SDL mouse button identifier 14 28 * @param name: the name of the mouse button 15 29 * @return an int containing the SDL identifier of the mouse button or -1 if the button name is not valid … … 18 32 19 33 /** 20 * converst a SDL mouse button identifier to a name string34 * @brief converst a SDL mouse button identifier to a name string 21 35 * @param button: an SDL mouse button identifier 22 36 * @return a pointer to a string containing the name of the mouse button 23 37 */ 24 const char*SDLBToButtonname( int button);38 std::string SDLBToButtonname( int button); 25 39 26 40 /** 27 * converts a key name string to a integer representing the corresponding SDLK sym41 * @brief converts a key name string to a integer representing the corresponding SDLK sym 28 42 * @param name: the name of the key 29 43 * @return the SDLK sym of the named key or -1 if the key name is not valid … … 32 46 33 47 /** 34 * converts an SDLK sym to a name string48 * @brief converts an SDLK sym to a name string 35 49 * @param key: the SDLK sym 36 50 * @return a pointer to a string containig the name of the key 37 51 */ 38 const char* SDLKToKeyname( int key); 39 52 std::string SDLKToKeyname( int key); 40 53 41 54 #endif /* _KEY_NAMES_H */
Note: See TracChangeset
for help on using the changeset viewer.