diff options
author | Guilherme Felipe <guilhermefelipecgs@gmail.com> | 2018-04-09 17:48:24 -0300 |
---|---|---|
committer | Guilherme Felipe <guilhermefelipecgs@gmail.com> | 2018-04-10 11:38:34 -0300 |
commit | 4f05190fb08b064b8605ab80cba74aee38e52702 (patch) | |
tree | 9ac4369738c103f2d022c9824027a9d802d5ad86 /main/input_default.h | |
parent | 48890b15c5b5ff54ea2cf416a9d3157f2d5dee5b (diff) | |
download | redot-engine-4f05190fb08b064b8605ab80cba74aee38e52702.tar.gz |
Implement Input.set_default_cursor_shape to change the default shape
Closes #18043
Diffstat (limited to 'main/input_default.h')
-rw-r--r-- | main/input_default.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/input_default.h b/main/input_default.h index 7de6d3eca0..384b04cf41 100644 --- a/main/input_default.h +++ b/main/input_default.h @@ -115,6 +115,7 @@ class InputDefault : public Input { SpeedTrack mouse_speed_track; Map<int, Joypad> joy_names; int fallback_mapping; + CursorShape default_shape = CURSOR_ARROW; public: enum HatMask { @@ -225,6 +226,8 @@ public: void set_emulate_touch(bool p_emulate); virtual bool is_emulating_touchscreen() const; + virtual CursorShape get_default_cursor_shape(); + virtual void set_default_cursor_shape(CursorShape p_shape); virtual void set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_shape = Input::CURSOR_ARROW, const Vector2 &p_hotspot = Vector2()); virtual void set_mouse_in_window(bool p_in_window); |