| 372 | } |
| 373 | |
| 374 | void vtkAndroidRenderWindowInteractor::HandleKeyEvent( |
| 375 | bool down, int nChar, int metaState, int nRepCnt) |
| 376 | { |
| 377 | const char* keysym = this->GetKeySym(nChar); |
| 378 | if (down) |
| 379 | { |
| 380 | this->SetKeyEventInformation( |
| 381 | metaState & AMETA_CTRL_ON, metaState & AMETA_SHIFT_ON, nChar, nRepCnt, keysym); |
| 382 | this->SetAltKey(metaState & AMETA_ALT_ON); |
| 383 | this->InvokeEvent(vtkCommand::KeyPressEvent, nullptr); |
| 384 | return; |
| 385 | } |
| 386 | |
| 387 | this->SetKeyEventInformation( |
| 388 | metaState & AMETA_CTRL_ON, metaState & AMETA_SHIFT_ON, nChar, nRepCnt, keysym); |
| 389 | this->SetAltKey(metaState & AMETA_ALT_ON); |
| 390 | this->InvokeEvent(vtkCommand::KeyReleaseEvent, nullptr); |
| 391 | if (keysym && strlen(keysym) == 1) |
| 392 | { |
| 393 | this->SetKeyEventInformation( |
| 394 | metaState & AMETA_CTRL_ON, metaState & AMETA_SHIFT_ON, keysym[0], nRepCnt); |
| 395 | this->InvokeEvent(vtkCommand::CharEvent, nullptr); |
| 396 | } |
| 397 | } |
| 398 | |
| 399 | void vtkAndroidRenderWindowInteractor::HandleMotionEvent( |
| 400 | int actionType, int actionId, int numPtrs, int* xPtr, int* yPtr, int* idPtr, int metaState) |
no test coverage detected