Changeset 8743 in orxonox.OLD for trunk/src/lib/event
- Timestamp:
- Jun 23, 2006, 3:17:15 PM (19 years ago)
- Location:
- trunk/src/lib/event
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/event/event_handler.cc
r8717 r8743 49 49 this->state = ES_GAME; 50 50 this->eventsGrabbed = false; 51 52 this->keyState = SDL_GetKeyState(NULL); 51 53 } 52 54 -
trunk/src/lib/event/event_handler.h
r8623 r8743 42 42 bool isSubscribed(elState state, int eventType); 43 43 44 /** @param key the key to check @returns true if key is pressed */ 45 bool isPressed(SDLKey key) const { return this->keyState[key]; }; 44 46 45 47 void withUNICODE(elState state, bool enableUNICODE); … … 76 78 bool bUNICODE[ES_NUMBER]; //!< If unicode should be enabled. 77 79 bool eventsGrabbed; //!< If the events should be grabbed 80 81 Uint8* keyState; 78 82 }; 79 83
Note: See TracChangeset
for help on using the changeset viewer.