dividuum / info-beamer

The Multimedia Presenter for Lua (for commercial projects, use info-beamer pi instead)
https://info-beamer.com/
Other
227 stars 48 forks source link

Expose GLFW key events to nodes. #3

Closed vrld closed 12 years ago

vrld commented 12 years ago

Add callbacks node.keypressed(key, code) and node.keyreleased(key, code) All nodes will receive the keyboard events.

Add global table GLFW_SPECIAL_KEYS that maks glfw special key codes to string identifiers (e.g. GLFW_KEY_ESC -> "escape").

dividuum commented 12 years ago

I decided against merging your great pull request for the following reasons: This feature can be implemented without changing the info-beamer core. Commit 7e14382f4c adds the same feature using a small python client (using pygame and pyOSC) which sends keyboard/mouse input to info-beamer using OSC. This has the following advantages: