Quote:
Originally Posted by Meo-Ada Mespotine
mouse_cap still doesn't return the ctrl/shift when calling getchar?
|
Yes it does! Thank you!
So I after detecting a change in
gfx.mouse_wheel I can call
gfx.getchar() and look up the ctrl modifier in
gfx.mouse_cap
There's an issue though. Seems like this only works after reaper has set gfx.mouse_cap at least once (e.g. by clicking into the lua script window once). So when I open the script window without clicking anywhere, I can't detect the ctrl+scroll like this.
Maybe there's a way to trigger this click programmatically? I think JS API can trigger mouse clicks, but I'd much prefer a native solution.