Skip to content

niksilver/keyboard-code-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Keyboard code translator

A mod for the monome norns which translates problematic keyboard key presses. It is configured for the Keychron K8 in Windows/Android mode, which is very niche. However, you can change that by editing the script yourself.

The problem (and solution)

You can attach a (typing) keyboard to the monome norns for improved functionality, and even choose your per-country keyboard layout.

However, some keyboards still produce unrecognised or problematic key codes. This norns mod fixes that by translating input key codes. It is currently configured to fix the function keys on a Keychron K8 in Windows/Android mode. That's pretty specific, but you can edit the script to change that.

Installation

Install it as you would any other mod. In this case

;install https://github.com/niksilver/keyboard-code-translator

(Re)configuration

You'll need to edit file lib/mod.lua. Change the overrides mapping which takes a code from the keyboard and says what key name it should generate.

To find what key codes your keyboard generates go to the mod's menu in SYSTEM > MODS. When you press a key that will show the code generated, plus any translation that the mod currently does. It will also show the key state. It is presented like the input to the keyboard.code() function.

Note that the key code displayed on this screen is the code as it comes from the keyboard, before any country-specific mapping.

References

About

Translate (typing) keyboard codes for the monome norns

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages