I am currently writing code for running Davinchi Resolve via my Loupedeck Live by using its MIDI options.
I get everything to work and have managed to to pull off hundreds of commands.
However I need to figure out how to port this to other resolutions.
I am currently on Apple MBP 16 running at 2048x1280 (perceived) aspect ratio of 16/10. However I know that all my button clicks and mouse moves will get all messed up when I switch to a UHD that my PC uses 3840x2160 with aspect ratio of 16/9 or the 2560x1440 that my home external monitor uses.
So my question is is there a smart way to scale x and y positions so I only need to hunt them once?
I have tried setting global variables and then recalculating yx and yy (my global coordinates) by using xs and ys (global scale factors per project). Where by project I mean screen in practice. But never the less I still get bad positions.
I also do all the math with x1000 as to mitigate the fact that Bome only works with integers for output.
I know all of the above can be done as I have the MIDI grade 4 software and the DJ Tools Twister and that works with Resolve on various screens.
Thank you for the help.