QVTK_RenderWindowInteractor
::mouseMoveEvent( QMouseEvent* event )
{
+ int keyCode = 0;
+ if ( event->state() & AltButton )
+ keyCode = Qt::Key_Alt;
+
GetDevice()->SetEventInformationFlipY(event->x(),
event->y(),
event->state() & ControlButton,
- event->state() & ShiftButton);
+ event->state() & ShiftButton,
+ keyCode );
GetDevice()->MouseMoveEvent();
}
QVTK_RenderWindowInteractor
::mousePressEvent( QMouseEvent* event )
{
+ int keyCode = 0;
+ if ( event->state() & AltButton )
+ keyCode = Qt::Key_Alt;
+
GetDevice()->SetEventInformationFlipY(event->x(),
event->y(),
event->state() & ControlButton,
- event->state() & ShiftButton);
+ event->state() & ShiftButton,
+ keyCode );
if( event->button() & LeftButton )
GetDevice()->LeftButtonPressEvent();
else if( event->button() & MidButton )
GetDevice()->MiddleButtonPressEvent();
else if( event->button() & RightButton )
GetDevice()->RightButtonPressEvent();
+
+ // QKeyEvent
}
QVTK_RenderWindowInteractor
::mouseReleaseEvent( QMouseEvent *event )
{
+ int keyCode = 0;
+ if ( event->state() & AltButton )
+ keyCode = Qt::Key_Alt;
+
GetDevice()->SetEventInformationFlipY(event->x(),
event->y(),
event->state() & ControlButton,
- event->state() & ShiftButton);
+ event->state() & ShiftButton,
+ keyCode);
if( event->button() & LeftButton )
GetDevice()->LeftButtonReleaseEvent();