Skip to content

Commit 18e5af4

Browse files
authored
Merge pull request #257 from offalynne/master
Add InputPlugin-Localization
2 parents 4ddadf0 + 9d6de3c commit 18e5af4

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: Localization Input Plug-in
3+
description: Keyboard layout localization for Input
4+
link: https://github.com/offalynne/InputPlugin-Localization
5+
date: 2025-10-08 14:26:00
6+
parent: Input
7+
tags:
8+
- Input
9+
- Localization
10+
- Input-plugin
11+
authors:
12+
- offalynne
13+
---
14+
Keyboard layout localization for [Input for GameMaker 2024.8](https://github.com/offalynne/Input).
15+
16+
### API
17+
18+
```
19+
InputLocalizeGetLocale() // Returns enum, user's keyboard locale
20+
21+
InputLocalizeBinding( // Returns a localized binding
22+
binding, // Key bind
23+
[localeInput], // Enum, source locale. INPUT_KEYBOARD_LOCALE.QWERTY, if undefined
24+
[localeOutput]) // Enum, destination locale. User's locale, if undefined
25+
26+
enum INPUT_KEYBOARD_LOCALE
27+
.QWERTY // English Latin key layout
28+
.AZERTY // Selective French key layout
29+
.QWERTZ // Central European key layout
30+
```
31+
32+
### Example Usage
33+
34+
```
35+
// Set localized key definitions
36+
InputDefineVerb(INPUT_VERB.WALK_FORWARD, "forward", InputLocalizeBinding("W"), -gp_axislv);
37+
InputDefineVerb(INPUT_VERB.STRAFE_LEFT, "left", InputLocalizeBinding("A"), -gp_axislh);
38+
InputDefineVerb(INPUT_VERB.WALK_BACK, "back", InputLocalizeBinding("S"), gp_axislv);
39+
InputDefineVerb(INPUT_VERB.STRAFE_RIGHT, "right", InputLocalizeBinding("D"), gp_axislh);
40+
```
41+
42+
***NB: Per limitations of GM Runner application, plug-in returns static OS region-default (locale) layout***
43+
44+
### **[Download (.yymps)](https://github.com/offalynne/InputPlugin-Localization/releases)**

0 commit comments

Comments
 (0)