keyboard_clear

Clears the state of the given key.

Syntax:

GML Code Example

keyboard_clear(key);


Argument Description
key The key to clear.


Returns: N/A


Description

With this function you can clear the current keyboard state, which essentially means that if the key is being held down, it will no longer be recognised until it is released again (which won't generate a keyboard_key_release event either on this occasion) and pressed again.


Example:

GML Code Example

keyboard_clear(vk_space);
 

The above code clears the state of the spacebar.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here