You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Use %s for bool value in vformat
This commit is contained in:
@@ -816,7 +816,7 @@ String InputEventMouseMotion::to_string() {
|
|||||||
|
|
||||||
// Work around the fact vformat can only take 5 substitutions but 7 need to be passed.
|
// Work around the fact vformat can only take 5 substitutions but 7 need to be passed.
|
||||||
String mask_and_position_and_relative = vformat("button_mask=%s, position=(%s), relative=(%s)", button_mask_string, String(get_position()), String(get_relative()));
|
String mask_and_position_and_relative = vformat("button_mask=%s, position=(%s), relative=(%s)", button_mask_string, String(get_position()), String(get_relative()));
|
||||||
return vformat("InputEventMouseMotion: %s, velocity=(%s), pressure=%.2f, tilt=(%s), pen_inverted=(%d)", mask_and_position_and_relative, String(get_velocity()), get_pressure(), String(get_tilt()), get_pen_inverted());
|
return vformat("InputEventMouseMotion: %s, velocity=(%s), pressure=%.2f, tilt=(%s), pen_inverted=(%s)", mask_and_position_and_relative, String(get_velocity()), get_pressure(), String(get_tilt()), get_pen_inverted());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool InputEventMouseMotion::accumulate(const Ref<InputEvent> &p_event) {
|
bool InputEventMouseMotion::accumulate(const Ref<InputEvent> &p_event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user