'Press on screen button based on moveable shape
Trying to make a Steam Deck like game controller keyboard for windows. On the steam deck you can use both joysticks to control two circles that press the on screen keyboard. Imagine having two mouse pointers you can concurrently control that presses on a keyboard.
What I’ve done is create a semi transparent form that stays on top with a window sinker. I can control both of my circles within a canvas. What I cant do is press those buttons with my moveable circle.
What I’ve tried: moving the mouse pointer to my circle position. Yes, it works. It also looks silly with the pointer going back and forth on the screen. Would prefer to avoid.
Adding rectangular boxes with letters and keeping the positions in an array. Lots of looping to find what letter I’m over. I also lose the highlight affect of having a mouse pointer.
Is there anyway to create a button press event on the screen where my controllable circle is that doesn’t steal the mouse pointer or cause me to loop through silly amounts of stuff?
Thanks in advance!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
