whether to use the system mouse pointer or not.legacy
| @@ -58,6 +58,11 @@ Application::Application(char const *name, ivec2 resolution, float framerate) | |||||
| data = new ApplicationData(name, resolution, framerate); | data = new ApplicationData(name, resolution, framerate); | ||||
| } | } | ||||
| void Application::ShowPointer(bool show) | |||||
| { | |||||
| data->app.ShowPointer(show); | |||||
| } | |||||
| void Application::Run() | void Application::Run() | ||||
| { | { | ||||
| data->app.Run(); | data->app.Run(); | ||||
| @@ -27,6 +27,7 @@ public: | |||||
| Application(char const *name, ivec2 resolution, float framerate); | Application(char const *name, ivec2 resolution, float framerate); | ||||
| ~Application(); | ~Application(); | ||||
| void ShowPointer(bool show); | |||||
| void Run(); | void Run(); | ||||
| private: | private: | ||||
| @@ -109,6 +109,11 @@ Ps3App::Ps3App(char const *title, ivec2 res, float fps) : | |||||
| #endif | #endif | ||||
| } | } | ||||
| void Ps3App::ShowPointer(bool show) | |||||
| { | |||||
| ; | |||||
| } | |||||
| void Ps3App::Run() | void Ps3App::Run() | ||||
| { | { | ||||
| while (!Ticker::Finished()) | while (!Ticker::Finished()) | ||||
| @@ -29,6 +29,7 @@ public: | |||||
| Ps3App(char const *title, ivec2 res, float fps); | Ps3App(char const *title, ivec2 res, float fps); | ||||
| virtual ~Ps3App(); | virtual ~Ps3App(); | ||||
| void ShowPointer(bool show); | |||||
| void Run(); | void Run(); | ||||
| private: | private: | ||||
| @@ -62,7 +62,6 @@ SdlApp::SdlApp(char const *title, ivec2 res, float fps) : | |||||
| } | } | ||||
| SDL_WM_SetCaption(title, NULL); | SDL_WM_SetCaption(title, NULL); | ||||
| SDL_ShowCursor(0); | |||||
| /* Initialise everything */ | /* Initialise everything */ | ||||
| Ticker::Setup(fps); | Ticker::Setup(fps); | ||||
| @@ -74,6 +73,11 @@ SdlApp::SdlApp(char const *title, ivec2 res, float fps) : | |||||
| #endif | #endif | ||||
| } | } | ||||
| void SdlApp::ShowPointer(bool show) | |||||
| { | |||||
| SDL_ShowCursor(show ? 1 : 0); | |||||
| } | |||||
| void SdlApp::Run() | void SdlApp::Run() | ||||
| { | { | ||||
| while (!Ticker::Finished()) | while (!Ticker::Finished()) | ||||
| @@ -29,6 +29,7 @@ public: | |||||
| SdlApp(char const *title, ivec2 res, float fps); | SdlApp(char const *title, ivec2 res, float fps); | ||||
| virtual ~SdlApp(); | virtual ~SdlApp(); | ||||
| void ShowPointer(bool show); | |||||
| void Run(); | void Run(); | ||||
| private: | private: | ||||