mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-23 09:37:17 +01:00
parent
2c225f79fb
commit
a04ae000eb
@ -370,6 +370,10 @@ void OS_JavaScript::set_cursor_shape(CursorShape p_shape) {
|
||||
pandemonium_js_display_cursor_set_shape(pandemonium2dom_cursor(cursor_shape));
|
||||
}
|
||||
|
||||
OS::CursorShape OS_JavaScript::get_cursor_shape() const {
|
||||
return cursor_shape;
|
||||
}
|
||||
|
||||
void OS_JavaScript::set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_shape, const Vector2 &p_hotspot) {
|
||||
if (p_cursor.is_valid()) {
|
||||
Ref<Texture> texture = p_cursor;
|
||||
|
@ -147,6 +147,7 @@ public:
|
||||
virtual Point2 get_mouse_position() const;
|
||||
virtual int get_mouse_button_state() const;
|
||||
virtual void set_cursor_shape(CursorShape p_shape);
|
||||
virtual CursorShape get_cursor_shape() const;
|
||||
virtual void set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_shape, const Vector2 &p_hotspot);
|
||||
virtual void set_mouse_mode(MouseMode p_mode);
|
||||
virtual MouseMode get_mouse_mode() const;
|
||||
|
Loading…
Reference in New Issue
Block a user