Skip to content

offalynne/InputPlugin-Localization

Repository files navigation

Localization Input Plug-in

Keyboard layout localization for Input for GameMaker 2024.8.

API

InputLocalizeGetLocale() // Returns enum, user's keyboard locale

InputLocalizeBinding( // Returns a localized binding
  binding,            // Key bind
  [localeInput],      // Enum, source locale. INPUT_KEYBOARD_LOCALE.QWERTY, if undefined
  [localeOutput])     // Enum, destination locale. User's locale, if undefined

enum INPUT_KEYBOARD_LOCALE
  .QWERTY // Key layout for English Latin 
  .AZERTY // Key layout for Selective French
  .QWERTZ // Key layout for Central Europe

Example Usage

// Set localized key definitions
InputDefineVerb(INPUT_VERB.WALK_FORWARD, "forward", InputLocalizeBinding("W"), -gp_axislv);
InputDefineVerb(INPUT_VERB.STRAFE_LEFT,  "left",    InputLocalizeBinding("A"), -gp_axislh);
InputDefineVerb(INPUT_VERB.WALK_BACK,    "back",    InputLocalizeBinding("S"),  gp_axislv);
InputDefineVerb(INPUT_VERB.STRAFE_RIGHT, "right",   InputLocalizeBinding("D"),  gp_axislh);

NB: Per limitations of GM Runner application, plug-in returns static OS region-default (locale) layout

About

Keyboard layout localization Input Plug-in for GameMaker 2024.8

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Contributors