freddyz / computerscare-vcv-modules

Modules for VCV Rack
BSD 3-Clause "New" or "Revised" License
41 stars 9 forks source link

Change keyboard stuff from e.keyCode to e.keyName #39

Closed freddyz closed 2 years ago

freddyz commented 4 years ago

-Custom Blank -Laundry/Cookies/Peas?

Rack v2 has switched from key codes to key names, which correctly handle all keyboard layouts such as AZERTY or Dvorak. Plugin developers should use e.keyName == "q" instead of e.key == GLFW_KEY_Q for checking printable keys. Non-printable keys should still use e.key, e.g. e.key == GLFW_KEY_ESCAPE. More information in the docstrings when Rack v2 source code is released.

https://community.vcvrack.com/t/rack-development-blog/5864/54