Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 11, 2004, 10:45:18 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: setting keys is really sexy now

File:
1 edited

Legend:

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

    r3154 r3156  
    4343  Box* pKeysBox;
    4444 
    45   Box* pKeyBox[10];
    46   Button* pKeyButton[10];
    47   Label* pKeyLabel[10];
     45  struct InputKey
     46  {
     47    Box* pKeyBox;
     48    Button* pKeyButton;
     49    OptionLabel* pKeyOLabel;
     50  };
    4851
     52  InputKey* inputKey[10];
    4953
     54  static Window* inputWindow;
     55  static Button* inputButton;
     56  static long keySignal;
    5057 public:
    5158  Player(char* player);
     
    5562  Button* getOpenButton();
    5663
    57   static gint key_cb(GtkWidget* w, GdkEventKey* event, void* widget);
     64  static gint inputWindowEvent(GtkWidget* w, GdkEventKey* event, void* widget);
     65  static gint key_cb(GtkWidget* w, GdkEventKey* event, void* inputKey);
    5866  void setkey(KEYS key);
    5967 
Note: See TracChangeset for help on using the changeset viewer.