Changeset 1340 for code/branches/input/src/core/InputManager.cc
- Timestamp:
- May 21, 2008, 12:23:29 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/input/src/core/InputManager.cc
r1323 r1340 400 400 // normal play mode 401 401 // note: we assume that the handlers exist since otherwise, something's wrong anyway. 402 activeKeyHandlers_.push_back(keyHandlers_["keybinder"]); 403 activeMouseHandlers_.push_back(mouseHandlers_["keybinder"]); 404 if (getMouseHandler("SpaceShip")) 405 activeMouseHandlers_.push_back(mouseHandlers_["SpaceShip"]); 406 for (unsigned int i = 0; i < joySticksSize_; i++) 407 activeJoyStickHandlers_[i].push_back(joyStickHandlers_["keybinder"]); 402 enableKeyHandler("keybinder"); 403 enableMouseHandler("keybinder"); 404 enableMouseHandler("SpaceShip"); 405 enableJoyStickHandler("keybinder", 0); 408 406 break; 409 407 … … 413 411 414 412 case IS_CONSOLE: 415 activeMouseHandlers_.push_back(mouseHandlers_["keybinder"]); 416 if (getMouseHandler("SpaceShip")) 417 activeMouseHandlers_.push_back(mouseHandlers_["SpaceShip"]); 418 for (unsigned int i = 0; i < joySticksSize_; i++) 419 activeJoyStickHandlers_[i].push_back(joyStickHandlers_["keybinder"]); 420 421 activeKeyHandlers_.push_back(keyHandlers_["buffer"]); 413 enableMouseHandler("keybinder"); 414 enableMouseHandler("SpaceShip"); 415 enableJoyStickHandler("keybinder", 0); 416 enableKeyHandler("buffer"); 422 417 break; 423 418
Note: See TracChangeset
for help on using the changeset viewer.