I inherited a decent-sized code base that has a subpar camera control scheme. I'd like to use WASD for controls, but W is for wireframe and S is for statistics. The only solution I could find was:
viewer.setKeyEventSetsDone(0);
But this doesn't work (or I have it in the wrong place).
What's the easiest way to accomplish disabling wireframe and statistics? (Or even better remapping them)
The objects that consume the W and S events are two "events handlers", in particular:
Check your code base, you will see them attached to the main osg viewer or one of its views.