- Messages
- 17
- Country

Hi gang, I'm rebuilding some knobs and it occurred to me that I would like to make the mouse click interaction area on each side wider by ~50 pixel so that you can more easily touch what would be the outside area next to the knob and not just right on the knob itself, mainly to facilitate much easier use of a touchscreen with your finger so that you don't have to be as precise as what you normally do with a mouse cursor on a knob.
For example, a 100 x 100 knob would become 200 wide x 100 area for interaction but the knob is still drawn in the middle at 100x100 (see attached image).
So I guess what I'm asking is, if I'm going to enlargen the mouse click / touch zones do I also have to widen the knob art as well, meaning create more of a rectangle and not a square? Or are the mouse clicks in any way independent of the defined XY grid and able to work outside of the defined art X Y coordinates?
And if not, then that also begs the question do I need to just make a bigger square and not a rectangle? My concern here is do the mouse clicks move and rotate with the art (I assume not) but if the art is rotating and it's a rectangle shape and not a square then every 90 degrees the knob rectangle becomes vertical and so would the mouse clicks still work at that point.? (on only when horizontal??)
Or option C - do I first create a rectangular base image that's all 0,0,0 RGB and then that works with the mouse clicks by itself and then the square knob art is an element that sits and rotates on top of the rectangle base image?
I'm probably over-analyzing all this but I hope I explained this well enough for you to get what I'm saying,.. Essentially that if defining a rectangular area for touch / mouse clicks do I then need a base image under it to define mouse click zones or can I just use a single rectangular shaped art piece with the round knob drawn in the middle?
Thanks!
For example, a 100 x 100 knob would become 200 wide x 100 area for interaction but the knob is still drawn in the middle at 100x100 (see attached image).
So I guess what I'm asking is, if I'm going to enlargen the mouse click / touch zones do I also have to widen the knob art as well, meaning create more of a rectangle and not a square? Or are the mouse clicks in any way independent of the defined XY grid and able to work outside of the defined art X Y coordinates?
And if not, then that also begs the question do I need to just make a bigger square and not a rectangle? My concern here is do the mouse clicks move and rotate with the art (I assume not) but if the art is rotating and it's a rectangle shape and not a square then every 90 degrees the knob rectangle becomes vertical and so would the mouse clicks still work at that point.? (on only when horizontal??)
Or option C - do I first create a rectangular base image that's all 0,0,0 RGB and then that works with the mouse clicks by itself and then the square knob art is an element that sits and rotates on top of the rectangle base image?
I'm probably over-analyzing all this but I hope I explained this well enough for you to get what I'm saying,.. Essentially that if defining a rectangular area for touch / mouse clicks do I then need a base image under it to define mouse click zones or can I just use a single rectangular shaped art piece with the round knob drawn in the middle?
Thanks!
Attachments
Last edited:
