Mouse actions are actually supported in Via macros, just not in Via’s GUI
Today, I discovered that mouse actions in Via macros are actually supported! But a bug in Via’s GUI makes it impossible to enter them…
So how is it possible? By using the Via clone (but only if using a Keychron keyboard; it is supposed to take any keyboard’s JSON file as input, but I have never seen it demonstrated to actually be working). And the mouse actions actually work when the macro is executed.
Then in Via, the mouse keycodes are displayed as KC_MS_BTN1 (left click) and KC_MS_BTN2 (right click). But if trying to the modify macros they are in, we get (as noted in a previous blog post):
“Whoops! Invalid keycodes detected inside{}: KC_MS_BTN2”
A possible workaround is to manipulate a saved JSON file with the keyboard configuration (not to be confused with the JSON file that is required for some keyboards for the keyboards to be recognised by Via). But will Via accept the mouse codes when the manipulated file is loaded?
Leave a Reply