I switched everything to autohotkey instead of the previous keyboard handler. I had a heck of a time figuring out how to convert the push to talk functionality. Either the ahk library has some limitations or I haven't figured it out. There is a boolean keystate function, but it never worked when the full record hotkey was passed to it. It seems to only work for modifiers, or at least it didn't work for the mouse button when I attempted. So I created a new config variable called RECORD_MODIFIER. The push to talk functionality will work when this key is released.
So right now based on my default config, record triggers on/off with ctrl+mouse4, but if ctrl is held after triggering, it will keep recording until it is released.
I switched everything to autohotkey instead of the previous keyboard handler. I had a heck of a time figuring out how to convert the push to talk functionality. Either the ahk library has some limitations or I haven't figured it out. There is a boolean keystate function, but it never worked when the full record hotkey was passed to it. It seems to only work for modifiers, or at least it didn't work for the mouse button when I attempted. So I created a new config variable called RECORD_MODIFIER. The push to talk functionality will work when this key is released.
So right now based on my default config, record triggers on/off with ctrl+mouse4, but if ctrl is held after triggering, it will keep recording until it is released.