diff options
| author | Guilherme Silva | 2017-11-10 08:50:11 -0200 |
|---|---|---|
| committer | Guilherme Felipe | 2017-12-17 13:40:29 -0200 |
| commit | a392dbdbe3f67d42698e47399421fbdf6ae5c90a (patch) | |
| tree | 0a824a34a62a5f9510850e4e4f451e8c54e5ed46 /core/os/input.h | |
| parent | fa8a1fc4201dc4c16b5eef844dde17c5bba92dc8 (diff) | |
| download | godot-a392dbdbe3f67d42698e47399421fbdf6ae5c90a.tar.gz godot-a392dbdbe3f67d42698e47399421fbdf6ae5c90a.tar.zst godot-a392dbdbe3f67d42698e47399421fbdf6ae5c90a.zip | |
Diffstat (limited to 'core/os/input.h')
| -rw-r--r-- | core/os/input.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/core/os/input.h b/core/os/input.h index 97d3bef4f..a4efc64c6 100644 --- a/core/os/input.h +++ b/core/os/input.h @@ -51,6 +51,28 @@ public: MOUSE_MODE_CONFINED }; +#undef CursorShape + enum CursorShape { + CURSOR_ARROW, + CURSOR_IBEAM, + CURSOR_POINTING_HAND, + CURSOR_CROSS, + CURSOR_WAIT, + CURSOR_BUSY, + CURSOR_DRAG, + CURSOR_CAN_DROP, + CURSOR_FORBIDDEN, + CURSOR_VSIZE, + CURSOR_HSIZE, + CURSOR_BDIAGSIZE, + CURSOR_FDIAGSIZE, + CURSOR_MOVE, + CURSOR_VSPLIT, + CURSOR_HSPLIT, + CURSOR_HELP, + CURSOR_MAX + }; + void set_mouse_mode(MouseMode p_mode); MouseMode get_mouse_mode() const; @@ -96,7 +118,7 @@ public: virtual bool is_emulating_touchscreen() const = 0; - virtual void set_custom_mouse_cursor(const RES &p_cursor, const Vector2 &p_hotspot = Vector2()) = 0; + virtual void set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_shape = CURSOR_ARROW, const Vector2 &p_hotspot = Vector2()) = 0; virtual void set_mouse_in_window(bool p_in_window) = 0; virtual String get_joy_button_string(int p_button) = 0; @@ -110,5 +132,6 @@ public: }; VARIANT_ENUM_CAST(Input::MouseMode); +VARIANT_ENUM_CAST(Input::CursorShape); #endif // INPUT_H |
