Changeset 1887 for code/trunk/src/orxonox/gui
- Timestamp:
- Oct 6, 2008, 12:31:32 AM (16 years ago)
- Location:
- code/trunk/src/orxonox/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/gui/GUIManager.cc
r1878 r1887 279 279 } 280 280 281 void GUIManager::mouseButtonPressed(MouseButton ::Enum id)281 void GUIManager::mouseButtonPressed(MouseButtonCode::ByEnum id) 282 282 { 283 283 try … … 292 292 } 293 293 294 void GUIManager::mouseButtonReleased(MouseButton ::Enum id)294 void GUIManager::mouseButtonReleased(MouseButtonCode::ByEnum id) 295 295 { 296 296 try … … 306 306 307 307 308 inline CEGUI::MouseButton GUIManager::convertButton(MouseButton ::Enum button)308 inline CEGUI::MouseButton GUIManager::convertButton(MouseButtonCode::ByEnum button) 309 309 { 310 310 switch (button) 311 311 { 312 case MouseButton ::Left:312 case MouseButtonCode::Left: 313 313 return CEGUI::LeftButton; 314 314 315 case MouseButton ::Right:315 case MouseButtonCode::Right: 316 316 return CEGUI::RightButton; 317 317 318 case MouseButton ::Middle:318 case MouseButtonCode::Middle: 319 319 return CEGUI::MiddleButton; 320 320 321 case MouseButton ::Button3:321 case MouseButtonCode::Button3: 322 322 return CEGUI::X1Button; 323 323 324 case MouseButton ::Button4:324 case MouseButtonCode::Button4: 325 325 return CEGUI::X2Button; 326 326 -
code/trunk/src/orxonox/gui/GUIManager.h
r1755 r1887 93 93 { } 94 94 95 void mouseButtonPressed (MouseButton ::Enum id);96 void mouseButtonReleased(MouseButton ::Enum id);97 void mouseButtonHeld (MouseButton ::Enum id)95 void mouseButtonPressed (MouseButtonCode::ByEnum id); 96 void mouseButtonReleased(MouseButtonCode::ByEnum id); 97 void mouseButtonHeld (MouseButtonCode::ByEnum id) 98 98 { } 99 99 void mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize) … … 123 123 State state_; 124 124 125 static CEGUI::MouseButton convertButton(MouseButton ::Enum button);125 static CEGUI::MouseButton convertButton(MouseButtonCode::ByEnum button); 126 126 127 127 static GUIManager* singletonRef_s;
Note: See TracChangeset
for help on using the changeset viewer.