mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
MacOS: Embedded window support.
This commit is contained in:
parent
1cf573f44d
commit
00e1fdec2c
37 changed files with 3670 additions and 384 deletions
|
|
@ -89,6 +89,8 @@ public:
|
|||
|
||||
virtual bool accumulate(const Ref<InputEvent> &p_event) { return false; }
|
||||
|
||||
virtual InputEventType get_type() const { return InputEventType::INVALID; }
|
||||
|
||||
InputEvent() {}
|
||||
};
|
||||
|
||||
|
|
@ -202,6 +204,8 @@ public:
|
|||
|
||||
static Ref<InputEventKey> create_reference(Key p_keycode_with_modifier_masks, bool p_physical = false);
|
||||
|
||||
InputEventType get_type() const final override { return InputEventType::KEY; }
|
||||
|
||||
InputEventKey() {}
|
||||
};
|
||||
|
||||
|
|
@ -261,6 +265,8 @@ public:
|
|||
virtual String as_text() const override;
|
||||
virtual String to_string() override;
|
||||
|
||||
InputEventType get_type() const final override { return InputEventType::MOUSE_BUTTON; }
|
||||
|
||||
InputEventMouseButton() {}
|
||||
};
|
||||
|
||||
|
|
@ -306,6 +312,8 @@ public:
|
|||
|
||||
virtual bool accumulate(const Ref<InputEvent> &p_event) override;
|
||||
|
||||
InputEventType get_type() const final override { return InputEventType::MOUSE_MOTION; }
|
||||
|
||||
InputEventMouseMotion() {}
|
||||
};
|
||||
|
||||
|
|
@ -333,6 +341,8 @@ public:
|
|||
|
||||
static Ref<InputEventJoypadMotion> create_reference(JoyAxis p_axis, float p_value);
|
||||
|
||||
InputEventType get_type() const final override { return InputEventType::JOY_MOTION; }
|
||||
|
||||
InputEventJoypadMotion() {}
|
||||
};
|
||||
|
||||
|
|
@ -363,6 +373,8 @@ public:
|
|||
|
||||
static Ref<InputEventJoypadButton> create_reference(JoyButton p_btn_index);
|
||||
|
||||
InputEventType get_type() const final override { return InputEventType::JOY_BUTTON; }
|
||||
|
||||
InputEventJoypadButton() {}
|
||||
};
|
||||
|
||||
|
|
@ -392,6 +404,8 @@ public:
|
|||
virtual String as_text() const override;
|
||||
virtual String to_string() override;
|
||||
|
||||
InputEventType get_type() const final override { return InputEventType::SCREEN_TOUCH; }
|
||||
|
||||
InputEventScreenTouch() {}
|
||||
};
|
||||
|
||||
|
|
@ -444,6 +458,8 @@ public:
|
|||
|
||||
virtual bool accumulate(const Ref<InputEvent> &p_event) override;
|
||||
|
||||
InputEventType get_type() const final override { return InputEventType::SCREEN_DRAG; }
|
||||
|
||||
InputEventScreenDrag() {}
|
||||
};
|
||||
|
||||
|
|
@ -479,6 +495,8 @@ public:
|
|||
virtual String as_text() const override;
|
||||
virtual String to_string() override;
|
||||
|
||||
InputEventType get_type() const final override { return InputEventType::ACTION; }
|
||||
|
||||
InputEventAction() {}
|
||||
};
|
||||
|
||||
|
|
@ -510,6 +528,8 @@ public:
|
|||
virtual String as_text() const override;
|
||||
virtual String to_string() override;
|
||||
|
||||
InputEventType get_type() const final override { return InputEventType::MAGNIFY_GESTURE; }
|
||||
|
||||
InputEventMagnifyGesture() {}
|
||||
};
|
||||
|
||||
|
|
@ -528,6 +548,8 @@ public:
|
|||
virtual String as_text() const override;
|
||||
virtual String to_string() override;
|
||||
|
||||
InputEventType get_type() const final override { return InputEventType::PAN_GESTURE; }
|
||||
|
||||
InputEventPanGesture() {}
|
||||
};
|
||||
|
||||
|
|
@ -574,6 +596,8 @@ public:
|
|||
virtual String as_text() const override;
|
||||
virtual String to_string() override;
|
||||
|
||||
InputEventType get_type() const final override { return InputEventType::MIDI; }
|
||||
|
||||
InputEventMIDI() {}
|
||||
};
|
||||
|
||||
|
|
@ -592,5 +616,7 @@ public:
|
|||
virtual String as_text() const override;
|
||||
virtual String to_string() override;
|
||||
|
||||
InputEventType get_type() const final override { return InputEventType::SHORTCUT; }
|
||||
|
||||
InputEventShortcut();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue