- Timestamp:
- May 2, 2019, 4:06:01 PM (6 years ago)
- Location:
- code/branches/MouseAPI_FS19
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/MouseAPI_FS19/data/gui/layouts/MouseAPICursor.layout
r12327 r12334 1 1 <?xml version='1.0' encoding='utf-8'?> 2 2 <GUILayout version="4"> 3 <Window name=" InGameMenu_RootWindow" type="DefaultWindow">3 <Window name="MouseAPICursor" type="DefaultWindow"> 4 4 </Window> 5 5 </GUILayout> -
code/branches/MouseAPI_FS19/data/levels/MouseAPIExample.oxw
r12330 r12334 48 48 </attached> 49 49 </MouseAPIExample> 50 50 51 51 52 </Scene> -
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.