Quick Question: After I click on a button/checkbox how do I return focus to my game window?
Context: I am working on a layout editor for a card game. I have a checkbox called "Pin Rotations?"
Pin Rotations (Unchecked): When I push the left or right direction keys the cards will rotate around their image points, which are centered.
Pin Rotations (Checked): When I push the left or right direction keys the cards rotate around a central point for all selected cards.
Here's my problem. I select some cards, click on the checkbox, and then press the cursor keys. Nothing happens, of course, because the checkbox still has the focus. But if I click on my game window to return focus there it deselects all the selected cards.
How do I fix this?