@@ -277,7 +277,7 @@ String InputEventWithModifiers::as_text() const {
277277 }
278278}
279279
280- String InputEventWithModifiers::to_string () {
280+ String InputEventWithModifiers::_to_string () {
281281 return as_text ();
282282}
283283
@@ -488,7 +488,7 @@ String InputEventKey::as_text() const {
488488 return mods_text.is_empty () ? kc : mods_text + " +" + kc;
489489}
490490
491- String InputEventKey::to_string () {
491+ String InputEventKey::_to_string () {
492492 String p = is_pressed () ? " true" : " false" ;
493493 String e = is_echo () ? " true" : " false" ;
494494
@@ -848,7 +848,7 @@ String InputEventMouseButton::as_text() const {
848848 return full_string;
849849}
850850
851- String InputEventMouseButton::to_string () {
851+ String InputEventMouseButton::_to_string () {
852852 String p = is_pressed () ? " true" : " false" ;
853853 String canceled_state = is_canceled () ? " true" : " false" ;
854854 String d = double_click ? " true" : " false" ;
@@ -988,7 +988,7 @@ String InputEventMouseMotion::as_text() const {
988988 return vformat (RTR (" Mouse motion at position (%s) with velocity (%s)" ), String (get_position ()), String (get_velocity ()));
989989}
990990
991- String InputEventMouseMotion::to_string () {
991+ String InputEventMouseMotion::_to_string () {
992992 BitField<MouseButtonMask> mouse_button_mask = get_button_mask ();
993993 String button_mask_string = itos ((int64_t )mouse_button_mask);
994994
@@ -1184,7 +1184,7 @@ String InputEventJoypadMotion::as_text() const {
11841184 return vformat (RTR (" Joypad Motion on Axis %d (%s) with Value %.2f" ), axis, desc, axis_value);
11851185}
11861186
1187- String InputEventJoypadMotion::to_string () {
1187+ String InputEventJoypadMotion::_to_string () {
11881188 return vformat (" InputEventJoypadMotion: axis=%d, axis_value=%.2f" , axis, axis_value);
11891189}
11901190
@@ -1303,7 +1303,7 @@ String InputEventJoypadButton::as_text() const {
13031303 return text;
13041304}
13051305
1306- String InputEventJoypadButton::to_string () {
1306+ String InputEventJoypadButton::_to_string () {
13071307 String p = is_pressed () ? " true" : " false" ;
13081308 return vformat (" InputEventJoypadButton: button_index=%d, pressed=%s, pressure=%.2f" , button_index, p, pressure);
13091309}
@@ -1386,7 +1386,7 @@ String InputEventScreenTouch::as_text() const {
13861386 return vformat (RTR (" Screen %s at (%s) with %s touch points" ), status, String (get_position ()), itos (index));
13871387}
13881388
1389- String InputEventScreenTouch::to_string () {
1389+ String InputEventScreenTouch::_to_string () {
13901390 String p = pressed ? " true" : " false" ;
13911391 String canceled_state = canceled ? " true" : " false" ;
13921392 String double_tap_string = double_tap ? " true" : " false" ;
@@ -1514,7 +1514,7 @@ String InputEventScreenDrag::as_text() const {
15141514 return vformat (RTR (" Screen dragged with %s touch points at position (%s) with velocity of (%s)" ), itos (index), String (get_position ()), String (get_velocity ()));
15151515}
15161516
1517- String InputEventScreenDrag::to_string () {
1517+ String InputEventScreenDrag::_to_string () {
15181518 return vformat (" InputEventScreenDrag: index=%d, position=(%s), relative=(%s), velocity=(%s), pressure=%.2f, tilt=(%s), pen_inverted=(%s)" , index, String (get_position ()), String (get_relative ()), String (get_velocity ()), get_pressure (), String (get_tilt ()), get_pen_inverted ());
15191519}
15201520
@@ -1656,7 +1656,7 @@ String InputEventAction::as_text() const {
16561656 return String ();
16571657}
16581658
1659- String InputEventAction::to_string () {
1659+ String InputEventAction::_to_string () {
16601660 String p = is_pressed () ? " true" : " false" ;
16611661 return vformat (" InputEventAction: action=\" %s\" , pressed=%s" , action, p);
16621662}
@@ -1727,7 +1727,7 @@ String InputEventMagnifyGesture::as_text() const {
17271727 return vformat (RTR (" Magnify Gesture at (%s) with factor %s" ), String (get_position ()), rtos (get_factor ()));
17281728}
17291729
1730- String InputEventMagnifyGesture::to_string () {
1730+ String InputEventMagnifyGesture::_to_string () {
17311731 return vformat (" InputEventMagnifyGesture: factor=%.2f, position=(%s)" , factor, String (get_position ()));
17321732}
17331733
@@ -1769,7 +1769,7 @@ String InputEventPanGesture::as_text() const {
17691769 return vformat (RTR (" Pan Gesture at (%s) with delta (%s)" ), String (get_position ()), String (get_delta ()));
17701770}
17711771
1772- String InputEventPanGesture::to_string () {
1772+ String InputEventPanGesture::_to_string () {
17731773 return vformat (" InputEventPanGesture: delta=(%s), position=(%s)" , String (get_delta ()), String (get_position ()));
17741774}
17751775
@@ -1850,7 +1850,7 @@ String InputEventMIDI::as_text() const {
18501850 return vformat (RTR (" MIDI Input on Channel=%s Message=%s" ), itos (channel), itos ((int64_t )message));
18511851}
18521852
1853- String InputEventMIDI::to_string () {
1853+ String InputEventMIDI::_to_string () {
18541854 String ret;
18551855 switch (message) {
18561856 case MIDIMessage::NOTE_ON:
@@ -1926,7 +1926,7 @@ String InputEventShortcut::as_text() const {
19261926 return vformat (RTR (" Input Event with Shortcut=%s" ), shortcut->get_as_text ());
19271927}
19281928
1929- String InputEventShortcut::to_string () {
1929+ String InputEventShortcut::_to_string () {
19301930 ERR_FAIL_COND_V (shortcut.is_null (), " None" );
19311931
19321932 return vformat (" InputEventShortcut: shortcut=%s" , shortcut->get_as_text ());
0 commit comments