diff options
| author | Andreas Haas | 2016-09-20 22:12:52 +0200 |
|---|---|---|
| committer | Andreas Haas | 2016-09-20 23:36:09 +0200 |
| commit | e0fcd9331a7ce0e3afd7240a65ecf3e8c59ef9a3 (patch) | |
| tree | 1c9b3a6a61794fcc408e4ba91cb900f7d023823e /main/input_default.h | |
| parent | c21412fa7e098ac31b5d667d4d9f8eee3f12a2cd (diff) | |
| download | godot-e0fcd9331a7ce0e3afd7240a65ecf3e8c59ef9a3.tar.gz godot-e0fcd9331a7ce0e3afd7240a65ecf3e8c59ef9a3.tar.zst godot-e0fcd9331a7ce0e3afd7240a65ecf3e8c59ef9a3.zip | |
Add function to get readable names for joystick events
Closes #6476
Diffstat (limited to '')
| -rw-r--r-- | main/input_default.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/input_default.h b/main/input_default.h index fbf7837b3..2db6d28ab 100644 --- a/main/input_default.h +++ b/main/input_default.h @@ -235,6 +235,11 @@ public: virtual bool is_joy_known(int p_device); virtual String get_joy_guid(int p_device) const; + virtual String get_joy_button_string(int p_button); + virtual String get_joy_axis_string(int p_axis); + virtual int get_joy_axis_index_from_string(String p_axis); + virtual int get_joy_button_index_from_string(String p_button); + bool is_joy_mapped(int p_device); String get_joy_guid_remapped(int p_device) const; void set_fallback_mapping(String p_guid); |
