Getting rid of the alt modifier

Return to Code Snippets

Getting rid of the alt modifier

Postby dinoint » Fri Jan 23, 2009 4:11 am

The following snippet removes the alt modifier. I found out that removing it resolve the problem of losing the focus in the panda window for example after an alt+tab.

You have to use it after you have opened a window otherwise mouseWatcherNode is None

Code: Select all
buttons = base.mouseWatcherNode.getModifierButtons()
buttons.removeButton(buttons.getButton(2))
base.mouseWatcherNode.setModifierButtons(buttons)
base.buttonThrowers[0].node().setModifierButtons(buttons)
dinoint
 
Posts: 18
Joined: Mon Jan 12, 2009 9:30 am
Location: France

Postby astelix » Fri Jan 23, 2009 6:52 pm

actually this workaround works for me - thank you to share it!
My Rig:
P3D 1.7.0@WinXP & Kubuntu 10.04- Athlon 64 5200 X2 ~ Radeon 3200HD (integrated)
User avatar
astelix
 
Posts: 866
Joined: Mon Mar 27, 2006 4:36 pm
Location: Milano, ITA


Return to Code Snippets

Who is online

Users browsing this forum: No registered users and 2 guests