Skip to content

Keyboard

Tony Nguyen edited this page May 11, 2020 · 4 revisions

Keyboard Object Class allows for keyboard functionality, this is not a limited object which means you can have an infinite amount of this object per world. Represents the keyboard of a player. It's best if there is only one copy of this object however, as Waterfall.lua is always updating a select amount of instances such as Mouse Object Class.


Properties

Index Type Description Edit Mode
None None None None

Methods

None()

Parameter Type Optional Description
None None None None

None
Returns: None

Ripples

InputDown(key, scancode, repeated)

Argument Type Description
key String Key string of the pressed key
scancode String Scancode string of the pressed key
repeated Boolean Indicates whether or not this key is a repeat key event

Triggers when a key on a keyboard is being pressed

InputUp(key, scancode)

Argument Type Description
key String Key string of the pressed key
scancode String Scancode string of the pressed key

Triggers when a key on a keyboard is being released

Work in progress wiki!!

Clone this wiki locally