Changeset 5978 in orxonox.OLD for trunk/src/lib/event
- Timestamp:
- Dec 7, 2005, 5:51:54 PM (19 years ago)
- Location:
- trunk/src/lib/event
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/event/event_handler.cc
r5786 r5978 47 47 this->flush(ES_ALL); 48 48 this->withUNICODE(false); 49 this->grabEvents(false); 49 50 50 51 this->state = ES_GAME; … … 255 256 } 256 257 258 void EventHandler::grabEvents(bool grabEvents) 259 { 260 this->eventsGrabbed = grabEvents; 261 if(!grabEvents) 262 SDL_WM_GrabInput(SDL_GRAB_OFF); 263 else 264 SDL_WM_GrabInput(SDL_GRAB_ON); 265 } 257 266 258 267 /** -
trunk/src/lib/event/event_handler.h
r5786 r5978 43 43 44 44 void withUNICODE(bool enableUNICODE); 45 void grabEvents(bool grabEvents); 45 46 46 47 void process(); … … 62 63 63 64 bool bUNICODE; //!< If unicode should be enabled. 65 bool eventsGrabbed; //!< If the events should be grabbed 64 66 }; 65 67 -
trunk/src/lib/event/key_mapper.cc
r5944 r5978 37 37 int KeyMapper::PEV_LEFT = EV_UNKNOWN; 38 38 int KeyMapper::PEV_RIGHT = EV_UNKNOWN; 39 int KeyMapper::PEV_ROLL_LEFT = EV_UNKNOWN; 40 int KeyMapper::PEV_ROLL_RIGHT = EV_UNKNOWN; 39 41 int KeyMapper::PEV_STRAFE_LEFT = EV_UNKNOWN; 40 42 int KeyMapper::PEV_STRAFE_RIGHT = EV_UNKNOWN; … … 69 71 {&KeyMapper::PEV_LEFT, CONFIG_NAME_PLAYER_LEFT}, 70 72 {&KeyMapper::PEV_RIGHT, CONFIG_NAME_PLAYER_RIGHT}, 73 {&KeyMapper::PEV_ROLL_LEFT, CONFIG_NAME_PLAYER_ROLL_RIGHT}, 74 {&KeyMapper::PEV_ROLL_RIGHT, CONFIG_NAME_PLAYER_ROLL_LEFT}, 71 75 {&KeyMapper::PEV_STRAFE_LEFT, "StrafeLeft"}, 72 76 {&KeyMapper::PEV_STRAFE_RIGHT, "StrafeRight"}, -
trunk/src/lib/event/key_mapper.h
r5915 r5978 44 44 static int PEV_RIGHT; //!< right button 45 45 46 static int PEV_ROLL_LEFT; //!< rolls left 47 static int PEV_ROLL_RIGHT; //!< rolls right 48 46 49 static int PEV_STRAFE_LEFT; //!< strafe left button 47 50 static int PEV_STRAFE_RIGHT; //!< strafe right button
Note: See TracChangeset
for help on using the changeset viewer.