Constructor
(package) new ConsoleInput(console)
Creates a new instance of the ConsoleInput class.
Parameters:
Name | Type | Description |
---|---|---|
console |
rune.console.Console | Reference to the console to which the object is connected. |
- Source:
Members
enabled :boolean
Whether or not the input field receives input from keyboard events.
Type:
- boolean
- Source:
Methods
add(chr) → {undefined}
Adds a character to the input field.
Parameters:
Name | Type | Description |
---|---|---|
chr |
string | The character to add. |
- Source:
Returns:
- Type
- undefined
clear() → {undefined}
Clears the contents of the input field.
- Source:
Returns:
- Type
- undefined