Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

keyboard_string

drewmccluskey edited this page Feb 12, 2019 · 1 revision

keyboard_string

string variable with the string of keyboard chars in the order in which they were pressed

Returns: string

Description:

This is a variable holding the list of inputted chars in the order which they were pressed. It is very useful for writing text in a game such as in a chat bar or a search. To clear the keyboard string for starting over, simply set keyboard_string = "";

Example:

if (keyboard_check_pressed(Keys.R))
{
 show_debug_message(keyboard_string.ToString());
}

This code will write the keyboard string to a debug message when the user presses the Enter key.

Back to Keyboard

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /