summaryrefslogtreecommitdiff
path: root/core/os/input.h
diff options
context:
space:
mode:
authorAndreas Haas <liu.gam3@gmail.com>2016-09-20 22:12:52 +0200
committerAndreas Haas <liu.gam3@gmail.com>2016-09-20 23:36:09 +0200
commite0fcd9331a7ce0e3afd7240a65ecf3e8c59ef9a3 (patch)
tree1c9b3a6a61794fcc408e4ba91cb900f7d023823e /core/os/input.h
parentc21412fa7e098ac31b5d667d4d9f8eee3f12a2cd (diff)
Add function to get readable names for joystick events
Closes #6476
Diffstat (limited to 'core/os/input.h')
-rw-r--r--core/os/input.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/os/input.h b/core/os/input.h
index 665fb4ad99..d8f3be09df 100644
--- a/core/os/input.h
+++ b/core/os/input.h
@@ -96,6 +96,11 @@ public:
virtual void set_custom_mouse_cursor(const RES& p_cursor,const Vector2& p_hotspot=Vector2())=0;
virtual void set_mouse_in_window(bool p_in_window)=0;
+ virtual String get_joy_button_string(int p_button)=0;
+ virtual String get_joy_axis_string(int p_axis)=0;
+ virtual int get_joy_button_index_from_string(String p_button)=0;
+ virtual int get_joy_axis_index_from_string(String p_axis)=0;
+
Input();
};