Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2735 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui_keys.h


Ignore:
Timestamp:
Nov 6, 2004, 3:18:40 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: added keys, and enabled key_press_event on them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/gui/orxonox_gui_keys.h

    r2733 r2735  
    1313 * defines the Possible Player Keys
    1414 */
    15 enum KEYS { UP, DOWN, LEFT, RIGTH, SHOOT };
     15enum KEYS { UP, DOWN, LEFT, RIGHT, SHOOT };
    1616
    17 /**
    18    \brief Class to hold infos about a Player
    19 */
     17//! Class to hold infos about a Player
    2018class Player
    2119{
    2220 private:
    23   char keys[10];
     21  Window* keyWindow;
     22  bool windowIsOpen;
    2423  Button* openButton;
    25   Window* window;
    26  
     24
     25
     26  Box* keyBox;
     27  Button* Keys[10];
     28
     29
    2730 public:
    2831  Player(char* player);
    2932
    3033  Button* getOpenButton();
     34 
     35  void openWindow ();
    3136
     37  static gint openWindowEvent(GtkWidget* widget, GdkEvent* event, void* player);
    3238  void setkey(KEYS key);
    3339 
     
    5258
    5359
    54 gint key_cb(GtkWidget* w, GdkEventKey* event, gpointer data);
     60
     61gint key_cb(GtkWidget* w, GdkEventKey* event, void* Widget);
    5562
    5663#endif /* _ORXONOX_GUI_KEYS_H */
Note: See TracChangeset for help on using the changeset viewer.