keyboard_unset_map

Resets the keyboard mapping to its default state.

Syntax:

GML Code Example

keyboard_get_map(key);


Returns: N/A


Description

With this function you can clear all re-mapped keys so that they return to their default state, ie: all keys to map to themselves.


Example:

GML Code Example

if keyboard_check_pressed(vk_escape) keyboard_unset_map();
 

The above example code will reset all mapped keys to their default settings if the user presses the "escape" key.





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