Changeset 12334 for code/branches/MouseAPI_FS19/src
- Timestamp:
- May 2, 2019, 4:06:01 PM (6 years ago)
- Location:
- code/branches/MouseAPI_FS19/src/modules/MouseAPI
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/MouseAPI_FS19/src/modules/MouseAPI/CMakeLists.txt
r12309 r12334 3 3 mouseapiexample.cc 4 4 mousegametype.cc 5 mouseapicursor.cc 5 6 ) 6 7 -
code/branches/MouseAPI_FS19/src/modules/MouseAPI/mouseapi.cc
r12311 r12334 77 77 { 78 78 //mousePos = abs; 79 InputManager::getInstance().leaveState("game");//hack: todo: crate 2nd input state with prioritz 98 for cegui(cursor) 80 GUIManager::getInstance().showGUI("MouseAPICursor", true);//hack todo: only if gui not shown & evt better if not in mouse mooved 81 } 79 } 80 81 void MouseAPI::tick(float dt) 82 { 83 if(active) 84 { 85 InputManager::getInstance().leaveState("game");//hack: todo: crate 2nd input state with prioritz 98 for cegui(cursor) 86 GUIManager::getInstance().showGUI("MouseAPICursor", false);//hack todo: only if gui not shown & evt better if not in mouse mooved 87 } 88 89 } 90 82 91 83 92 void MouseAPI::mouseScrolled(int abs, int rel)
Note: See TracChangeset
for help on using the changeset viewer.