diff options
author | Eric M <itsjusteza@gmail.com> | 2020-10-01 22:55:23 +1000 |
---|---|---|
committer | Eric M <itsjusteza@gmail.com> | 2020-11-27 00:42:16 +1000 |
commit | dfe4c5f8e130b9c63a1a18ffdaf07c512e670e63 (patch) | |
tree | 28010a3e0428c397388ae79d43513c968d199ed8 /editor/input_map_editor.h | |
parent | 7e009a167110e79caa102c5b88363fd32b75293c (diff) |
InputEvent as_text now returns readable string. Added to_string for debug strings
Made InputEvent as_text() return a readable and presentable string. Added to_string() overrides for each which returns a 'debug-friendly' version which is not as presentable but provides more information and in a more structured fashion. Use as_text() for UI display scenarions and to_string() for debug cases
Diffstat (limited to 'editor/input_map_editor.h')
-rw-r--r-- | editor/input_map_editor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/input_map_editor.h b/editor/input_map_editor.h index b9a3ce19d4..b59eb97e1d 100644 --- a/editor/input_map_editor.h +++ b/editor/input_map_editor.h @@ -88,6 +88,8 @@ class InputMapEditor : public Control { void _press_a_key_confirm(); void _show_last_added(const Ref<InputEvent> &p_event, const String &p_name); + String _get_joypad_motion_event_text(const Ref<InputEventJoypadMotion> &p_event); + Variant get_drag_data_fw(const Point2 &p_point, Control *p_from); bool can_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) const; void drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from); |