Ignore:
Timestamp:
Nov 12, 2011, 4:52:47 PM (11 years ago)
Author:
sam
Message:

core: implement Application::ShowPointer() so that applications can choose
whether to use the system mouse pointer or not.

Location:
trunk/src/platform/sdl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/platform/sdl/sdlapp.cpp

    r1040 r1063  
    6363
    6464    SDL_WM_SetCaption(title, NULL);
    65     SDL_ShowCursor(0);
    6665
    6766    /* Initialise everything */
     
    7372    new SdlInput();
    7473#endif
     74}
     75
     76void SdlApp::ShowPointer(bool show)
     77{
     78    SDL_ShowCursor(show ? 1 : 0);
    7579}
    7680
  • trunk/src/platform/sdl/sdlapp.h

    r865 r1063  
    3030    virtual ~SdlApp();
    3131
     32    void ShowPointer(bool show);
    3233    void Run();
    3334
Note: See TracChangeset for help on using the changeset viewer.