Thanks to Björn Hein for spotting mistakes in EventQueue.cpp and StateSetManipulator, now fixed by Robert Osfield. Problems were:
"StateSetManipulator.cpp (rev 1.12, l. 85): cyclePolygonMode() is called but no aa.requestRedraw() afterwards. Is this intended? EventQueue.cpp (rev 1.8): in keyRelease & keyPressed KEY_Alt_R was mapped to MODKEY_LEFT_ALT"
This commit is contained in:
@@ -263,7 +263,7 @@ void EventQueue::keyPress(GUIEventAdapter::KeySymbol key)
|
||||
case(GUIEventAdapter::KEY_Meta_L): _accumulateEventState->setModKeyMask(GUIEventAdapter::MODKEY_LEFT_META | _accumulateEventState->getModKeyMask()); break;
|
||||
case(GUIEventAdapter::KEY_Meta_R): _accumulateEventState->setModKeyMask(GUIEventAdapter::MODKEY_RIGHT_META | _accumulateEventState->getModKeyMask()); break;
|
||||
case(GUIEventAdapter::KEY_Alt_L): _accumulateEventState->setModKeyMask(GUIEventAdapter::MODKEY_LEFT_ALT | _accumulateEventState->getModKeyMask()); break;
|
||||
case(GUIEventAdapter::KEY_Alt_R): _accumulateEventState->setModKeyMask(GUIEventAdapter::MODKEY_LEFT_ALT | _accumulateEventState->getModKeyMask()); break;
|
||||
case(GUIEventAdapter::KEY_Alt_R): _accumulateEventState->setModKeyMask(GUIEventAdapter::MODKEY_RIGHT_ALT | _accumulateEventState->getModKeyMask()); break;
|
||||
case(GUIEventAdapter::KEY_Caps_Lock):
|
||||
{
|
||||
if ((_accumulateEventState->getModKeyMask() & GUIEventAdapter::MODKEY_CAPS_LOCK)!=0)
|
||||
@@ -301,7 +301,7 @@ void EventQueue::keyRelease(GUIEventAdapter::KeySymbol key)
|
||||
case(GUIEventAdapter::KEY_Meta_L): _accumulateEventState->setModKeyMask(~GUIEventAdapter::MODKEY_LEFT_META & _accumulateEventState->getModKeyMask()); break;
|
||||
case(GUIEventAdapter::KEY_Meta_R): _accumulateEventState->setModKeyMask(~GUIEventAdapter::MODKEY_RIGHT_META & _accumulateEventState->getModKeyMask()); break;
|
||||
case(GUIEventAdapter::KEY_Alt_L): _accumulateEventState->setModKeyMask(~GUIEventAdapter::MODKEY_LEFT_ALT & _accumulateEventState->getModKeyMask()); break;
|
||||
case(GUIEventAdapter::KEY_Alt_R): _accumulateEventState->setModKeyMask(~GUIEventAdapter::MODKEY_LEFT_ALT & _accumulateEventState->getModKeyMask()); break;
|
||||
case(GUIEventAdapter::KEY_Alt_R): _accumulateEventState->setModKeyMask(~GUIEventAdapter::MODKEY_RIGHT_ALT & _accumulateEventState->getModKeyMask()); break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
|
||||
@@ -83,6 +83,7 @@ bool StateSetManipulator::handle(const GUIEventAdapter& ea,GUIActionAdapter& aa)
|
||||
|
||||
case 'w' :
|
||||
cyclePolygonMode();
|
||||
aa.requestRedraw();
|
||||
break;
|
||||
|
||||
#if COMPILE_TEXENVFILTER_USAGE
|
||||
@@ -97,6 +98,7 @@ bool StateSetManipulator::handle(const GUIEventAdapter& ea,GUIActionAdapter& aa)
|
||||
|
||||
// cycle through the available modes.
|
||||
texenvfilter->setLodBias(texenvfilter->getLodBias()+0.1);
|
||||
aa.requestRedraw();
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user