Changeset 5985 in orxonox.OLD for branches/powerups/src/lib
- Timestamp:
- Dec 8, 2005, 1:10:27 AM (19 years ago)
- Location:
- branches/powerups/src/lib
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/powerups/src/lib/event/event_handler.cc
r5786 r5985 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 /** -
branches/powerups/src/lib/event/event_handler.h
r5786 r5985 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 -
branches/powerups/src/lib/event/key_mapper.cc
r5955 r5985 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"}, -
branches/powerups/src/lib/event/key_mapper.h
r5955 r5985 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 -
branches/powerups/src/lib/graphics/light.cc
r5955 r5985 274 274 while (element != NULL) 275 275 { 276 Factory:: getFirst()->fabricate(element);276 Factory::fabricate(element); 277 277 278 278 element = element->NextSiblingElement(); -
branches/powerups/src/lib/gui/gtk_gui/gui_keys.cc
r5955 r5985 115 115 116 116 pKeysBox->setGroupName(player); 117 pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_UP, "UP")); 118 pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_DOWN, "DOWN")); 119 pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_LEFT, "LEFT")); 120 pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_RIGHT, "RIGHT")); 117 pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_UP, "w")); 118 pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_DOWN, "s")); 119 pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_LEFT, "a")); 120 pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_RIGHT, "d")); 121 pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_ROLL_LEFT, "q")); 122 pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_ROLL_RIGHT, "e")); 121 123 pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_FIRE, "BUTTON_LEFT")); 122 124 pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_NEXT_WEAPON, "m")); -
branches/powerups/src/lib/math/vector.h
r5692 r5985 21 21 */ 22 22 23 #ifndef _ VECTOR_H24 #define _ VECTOR_H23 #ifndef __VECTOR_H_ 24 #define __VECTOR_H_ 25 25 26 26 #include <math.h> … … 318 318 319 319 320 #endif /* _ VECTOR_H*/321 320 #endif /* __VECTOR_H_ */ 321 -
branches/powerups/src/lib/physics/physics_engine.cc
r5955 r5985 103 103 while (element != NULL) 104 104 { 105 Factory:: getFirst()->fabricate(element);105 Factory::fabricate(element); 106 106 107 107 element = element->NextSiblingElement(); … … 119 119 while (element != NULL) 120 120 { 121 Factory:: getFirst()->fabricate(element);121 Factory::fabricate(element); 122 122 123 123 element = element->NextSiblingElement(); -
branches/powerups/src/lib/sound/sound_engine.cc
r5965 r5985 286 286 287 287 288 } 289 288 289 } 290 290 // INITIALIZING THE DEVICE: 291 291 ALCchar deviceName[] = … … 300 300 this->context = alcCreateContext(this->device, NULL); 301 301 302 alcMakeContextCurrent(this->context); 303 302 alcMakeContextCurrent(this->context); 304 303 305 304 if ((result = alGetError()) != AL_NO_ERROR)
Note: See TracChangeset
for help on using the changeset viewer.