You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Expose OS.read_string_from_stdin() to the scripting API
This can be used in scripts to read user input in a blocking manner. This also removes the unused `block` argument, which is always `true`.
This commit is contained in:
@@ -53,7 +53,7 @@ public:
|
||||
OS_Unix();
|
||||
|
||||
virtual void alert(const String &p_alert, const String &p_title = "ALERT!");
|
||||
virtual String get_stdin_string(bool p_block);
|
||||
virtual String get_stdin_string();
|
||||
|
||||
//virtual void set_mouse_show(bool p_show);
|
||||
//virtual void set_mouse_grab(bool p_grab);
|
||||
|
||||
Reference in New Issue
Block a user