I know others have reported alt key issues in other threads but I’m not sure this is the same issue.
I have a Panda3D window as a child of a wx frame. I’m also trying to duplicate Maya style controls, so moving the editor camera is done by holding down alt with one of the mouse buttons. If I move focus to another panel of the frame then click back on the Panda panel, I get a click captured but no modifiers captured if I am also holding down alt.
I thought maybe I could beat this by storing the alt modifier separately instead of binding to the click and modifier at the same time like this:
The alt key is particularly troublesome because the operating system often eats it before Panda even gets a chance to see it. This is certainly true on Linux and OSX. What operating system are you running on?
I believe so. I suppose I could bind the alt key on the wx side to toggle a flag that Panda could read, so either loop could catch the event. Seems a bit dirty to do it that way however