Changeset 1340 for code/branches/input/src/orxonox
- Timestamp:
- May 21, 2008, 12:23:29 AM (17 years ago)
- Location:
- code/branches/input/src/orxonox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/input/src/orxonox/Orxonox.cc
r1293 r1340 83 83 namespace orxonox 84 84 { 85 ConsoleCommandShortcut(Orxonox, exit, AccessLevel::None); 86 ConsoleCommandShortcut(Orxonox, slomo, AccessLevel::Offline).setDefaultValue(0, 1.0); 85 ConsoleCommandShortcut(Orxonox, exit, AccessLevel::None).setKeybindMode(KeybindMode::OnPress); 86 ConsoleCommandShortcut(Orxonox, slomo, AccessLevel::Offline).setDefaultValue(0, 1.0) 87 .setAxisParamIndex(0).setIsAxisRelative(false); 87 88 ConsoleCommandShortcut(Orxonox, setTimeFactor, AccessLevel::Offline).setDefaultValue(0, 1.0); 88 89 ConsoleCommandShortcut(Orxonox, activateConsole, AccessLevel::None); -
code/branches/input/src/orxonox/objects/SpaceShip.cc
r1323 r1340 296 296 } 297 297 298 boolSpaceShip::mouseMoved(IntVector2 abs, IntVector2 rel, IntVector2 clippingSize)298 void SpaceShip::mouseMoved(IntVector2 abs, IntVector2 rel, IntVector2 clippingSize) 299 299 { 300 300 /* … … 352 352 this->mouseYRotation_ = Radian(yRotation); 353 353 } 354 355 return true; 356 } 357 358 bool SpaceShip::mouseButtonPressed(MouseButton::Enum id) 354 } 355 356 void SpaceShip::mouseButtonPressed(MouseButton::Enum id) 359 357 { 360 358 if (id == MouseButton::Left) … … 362 360 else if (id == MouseButton::Right) 363 361 this->bRMousePressed_ = true; 364 365 return true; 366 } 367 368 bool SpaceShip::mouseButtonReleased(MouseButton::Enum id) 362 } 363 364 void SpaceShip::mouseButtonReleased(MouseButton::Enum id) 369 365 { 370 366 if (id == MouseButton::Left) … … 375 371 this->camNode_->resetOrientation(); 376 372 } 377 378 return true;379 373 } 380 374 -
code/branches/input/src/orxonox/objects/SpaceShip.h
r1323 r1340 67 67 { SpaceShip::instance_s->setMaxSpeed(value); } 68 68 69 boolmouseButtonPressed (MouseButton::Enum id);70 boolmouseButtonReleased(MouseButton::Enum id);71 bool mouseButtonHeld (MouseButton::Enum id) { return true;}72 boolmouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize);73 bool mouseScrolled (int abs, int rel) { return true;}69 void mouseButtonPressed (MouseButton::Enum id); 70 void mouseButtonReleased(MouseButton::Enum id); 71 void mouseButtonHeld (MouseButton::Enum id) { } 72 void mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize); 73 void mouseScrolled (int abs, int rel) { } 74 74 75 75
Note: See TracChangeset
for help on using the changeset viewer.