Add Lime mouse cursor support on SDL2
This commit is contained in:
27
project/include/ui/Mouse.h
Normal file
27
project/include/ui/Mouse.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef LIME_UI_MOUSE_H
|
||||
#define LIME_UI_MOUSE_H
|
||||
|
||||
|
||||
#include <ui/MouseCursor.h>
|
||||
|
||||
|
||||
namespace lime {
|
||||
|
||||
|
||||
class Mouse {
|
||||
|
||||
public:
|
||||
|
||||
static MouseCursor currentCursor;
|
||||
|
||||
static void Hide ();
|
||||
static void SetCursor (MouseCursor cursor);
|
||||
static void Show ();
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
21
project/include/ui/MouseCursor.h
Normal file
21
project/include/ui/MouseCursor.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef LIME_UI_MOUSE_CURSOR_H
|
||||
#define LIME_UI_MOUSE_CURSOR_H
|
||||
|
||||
|
||||
namespace lime {
|
||||
|
||||
|
||||
enum MouseCursor {
|
||||
|
||||
DEFAULT,
|
||||
POINTER,
|
||||
TEXT,
|
||||
CUSTOM
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user