summaryrefslogtreecommitdiff
path: root/editor/project_settings_editor.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-04-08 09:04:14 -0300
committerGitHub <noreply@github.com>2018-04-08 09:04:14 -0300
commit47ffe107e6f0aa218f1ebbbef34043185dd4fd89 (patch)
tree056fe03eecb00ef0347d9a3097c607b06d22d6fd /editor/project_settings_editor.h
parent8a84f9df0d1f487f0a36f42171cf68e8800e04d4 (diff)
parent1e28f63bcf7b465cc940af18a08855d377370ac3 (diff)
Merge pull request #17967 from Nibodhika/all-device-mode
Allows to map an action to all devices.
Diffstat (limited to 'editor/project_settings_editor.h')
-rw-r--r--editor/project_settings_editor.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/project_settings_editor.h b/editor/project_settings_editor.h
index 9364b0ff2c..0ced88d7f6 100644
--- a/editor/project_settings_editor.h
+++ b/editor/project_settings_editor.h
@@ -80,7 +80,7 @@ class ProjectSettingsEditor : public AcceptDialog {
ConfirmationDialog *press_a_key;
Label *press_a_key_label;
ConfirmationDialog *device_input;
- SpinBox *device_id;
+ OptionButton *device_id;
OptionButton *device_index;
Label *device_index_label;
MenuButton *popup_copy_to_feature;
@@ -170,6 +170,10 @@ protected:
void _notification(int p_what);
static void _bind_methods();
+ int _get_current_device();
+ void _set_current_device(int i_device);
+ String _get_device_string(int i_device);
+
public:
void add_translation(const String &p_translation);
static ProjectSettingsEditor *get_singleton() { return singleton; }