Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Continue With MouseAPI Cursor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.