Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 2, 2019, 4:06:01 PM (6 years ago)
Author:
tkuonen
Message:

Continue With MouseAPI Cursor

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  
    33  mouseapiexample.cc
    44  mousegametype.cc
     5  mouseapicursor.cc
    56)
    67
  • code/branches/MouseAPI_FS19/src/modules/MouseAPI/mouseapi.cc

    r12311 r12334  
    7777{
    7878    //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
     81void 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
    8291
    8392void MouseAPI::mouseScrolled(int abs, int rel)
Note: See TracChangeset for help on using the changeset viewer.