MCPcopy Create free account
hub / github.com/Kitware/VTK / OnKeyDown

Method OnKeyDown

Rendering/UI/vtkWin32RenderWindowInteractor.cxx:800–813  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

798
799//------------------------------------------------------------------------------
800int vtkWin32RenderWindowInteractor::OnKeyDown(HWND, UINT vCode, UINT nRepCnt, UINT nFlags)
801{
802 if (!this->Enabled)
803 {
804 return 0;
805 }
806 int ctrl, shift, alt;
807 char keyCode;
808 const char* keySym;
809 ::RecoverKeyEventInformation(vCode, nFlags, ctrl, shift, alt, keyCode, keySym);
810 this->SetKeyEventInformation(ctrl, shift, keyCode, nRepCnt, keySym);
811 this->SetAltKey(alt);
812 return this->InvokeEvent(vtkCommand::KeyPressEvent, nullptr);
813}
814
815//------------------------------------------------------------------------------
816int vtkWin32RenderWindowInteractor::OnKeyUp(HWND, UINT vCode, UINT nRepCnt, UINT nFlags)

Callers 2

vtkHandleMessage2Function · 0.45
ProcessEventsMethod · 0.45

Calls 2

InvokeEventMethod · 0.80

Tested by

no test coverage detected