This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
shortcutmanager [2017/03/23 15:22] – created fxfire | shortcutmanager [2017/03/23 15:35] (current) – fxfire | ||
---|---|---|---|
Line 12: | Line 12: | ||
**Key Binds:** Binding Functions to Keyboard Shortcuts.\\ | **Key Binds:** Binding Functions to Keyboard Shortcuts.\\ | ||
**Button Bind:** Binding Functions to Image-Buttons.\\ | **Button Bind:** Binding Functions to Image-Buttons.\\ | ||
- | **User Functions: | + | **User Functions: |
+ | \\ | ||
+ | You can also add your own functions by ' | ||
+ | <code lua > | ||
+ | ml_input_mgr.registerFunction({ | ||
+ | name = " | ||
+ | func = " | ||
+ | toggle = true -- OPTIONAL: default to true if " | ||
+ | trigger = false -- OPTIONAL: default to false. Can this function be triggered. press> | ||
+ | icon = path/ | ||
+ | }) | ||
+ | </ |