Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4780 in orxonox.OLD for orxonox/trunk/src/lib/event/key_names.h


Ignore:
Timestamp:
Jul 2, 2005, 10:55:47 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: 1. the crosshair is registered, @patrick: i thought it was a little bit harder… worked myself through the EventSystem, it is quite cool :)

  1. Player now knows a loadParams and init routine

also testing the Crosshair inside of the Player

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/event/key_names.h

    r4457 r4780  
    22    \file keynames.h
    33    \brief Key/button naming functions
    4    
    5                 Converts strings to SDLK/SDL_BUTTON values and vice versa
     4
     5                Converts strings to SDLK/SDL_BUTTON values and vice versa
    66*/
    77#ifndef _KEY_NAMES_H
     
    99
    1010/**
    11         \brief 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
     11        \brief 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
    1414*/
    15 int buttonnameToSDLB( char* name);
     15int buttonnameToSDLB(const char* name);
    1616
    1717/**
    18         \brief 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
     18        \brief 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
    2121*/
    2222char* SDLBToButtonname( int button);
    2323
    2424/**
    25         \brief 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
     25        \brief 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
    2828*/
    29 int keynameToSDLK( char* name);
     29int keynameToSDLK(const char* name);
    3030
    3131/**
    32         \brief 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
     32        \brief 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
    3535*/
    3636char* SDLKToKeyname( int key);
Note: See TracChangeset for help on using the changeset viewer.