1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-28 16:07:14 +00:00

Add Input.is_physical_key_pressed method.

(cherry picked from commit 9877d91c4a)
This commit is contained in:
bruvzg
2021-11-23 11:14:19 +02:00
committed by Rémi Verschelde
parent 5555a69b5e
commit b8f888a43b
5 changed files with 24 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ class InputDefault : public Input {
int mouse_button_mask;
Set<int> physical_keys_pressed;
Set<int> keys_pressed;
Set<int> joy_buttons_pressed;
Map<int, float> _joy_axis;
@@ -221,6 +222,7 @@ protected:
public:
virtual bool is_key_pressed(int p_scancode) const;
virtual bool is_physical_key_pressed(int p_scancode) const;
virtual bool is_mouse_button_pressed(int p_button) const;
virtual bool is_joy_button_pressed(int p_device, int p_button) const;
virtual bool is_action_pressed(const StringName &p_action, bool p_exact = false) const;