In my addon, I have an image that takes up the width of the screen. As a feature of this, I would like to be able to click (or touch, as i’m using a touchscreen) to get the position of where the cursor pressed on the image. Then use that as a gauge for what action to take.
For instance, I’m building a radio. When I tap the left, which is 87.9 Mhz, I want to tune there, or if I tap in the middle, then 97.9, etc.
Is it possible to get the position of the mouse press/touch?