Gets the currently mapped ascii code for the selected key.


GML Code Example


Argument Description
key This is the key that you wish to get the mapped value from

Returns: Real


Sometimes you may wish to get the ascii code for a mapped key (to see if it is already mapped, for example) which is what this function returns.


GML Code Example

if keyboard_get_map(ord("A")) = ord("A")
    keyboard_set_map(ord("A"), keyboard_lastkey);

The above example code will first check and see if "A" has been mapped to another key, and if it hasn't it will map it to the last key that the user has pressed.

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