exerro / Sheets

Yet another GUI framework for ComputerCraft.
5 stars 2 forks source link

Improve KeyHandler #22

Closed exerro closed 7 years ago

exerro commented 7 years ago

The KeyHandler class should use a more powerful system for managing keybindings, revolving around actions: An action has the following properties:

A name, being the unique identifier of an action, will be immutable. All other properties will be able to be changed during runtime. Some system for passing in event details to the callback will be required, and dynamic values would be useful here: parameters = { event.is_shift_held and fast_speed or normal_speed }