------------------------------------------------------------------------------
| 331 | |
| 332 | //------------------------------------------------------------------------------ |
| 333 | void vtkWebAssemblyRenderWindowInteractor::UnRegisterUICallbacks() |
| 334 | { |
| 335 | auto& internals = (*this->Internals); |
| 336 | if (!internals.RegisteredUICallbacks) |
| 337 | { |
| 338 | // already unregistered |
| 339 | return; |
| 340 | } |
| 341 | const char* canvas = this->CanvasSelector; |
| 342 | if (this->InstallHTMLResizeObserver && internals.ResizeObserverInstalled) |
| 343 | { |
| 344 | emscripten_set_resize_callback_on_thread(EMSCRIPTEN_EVENT_TARGET_WINDOW, nullptr, 0, nullptr, |
| 345 | EM_CALLBACK_THREAD_CONTEXT_MAIN_RUNTIME_THREAD); |
| 346 | internals.ResizeObserverInstalled = false; |
| 347 | } |
| 348 | emscripten_set_mousemove_callback_on_thread( |
| 349 | canvas, nullptr, 0, nullptr, EM_CALLBACK_THREAD_CONTEXT_MAIN_RUNTIME_THREAD); |
| 350 | |
| 351 | emscripten_set_mousedown_callback_on_thread( |
| 352 | canvas, nullptr, 0, nullptr, EM_CALLBACK_THREAD_CONTEXT_MAIN_RUNTIME_THREAD); |
| 353 | emscripten_set_mouseup_callback_on_thread( |
| 354 | canvas, nullptr, 0, nullptr, EM_CALLBACK_THREAD_CONTEXT_MAIN_RUNTIME_THREAD); |
| 355 | |
| 356 | emscripten_set_touchmove_callback_on_thread( |
| 357 | canvas, nullptr, 0, nullptr, EM_CALLBACK_THREAD_CONTEXT_MAIN_RUNTIME_THREAD); |
| 358 | |
| 359 | emscripten_set_touchstart_callback_on_thread( |
| 360 | canvas, nullptr, 0, nullptr, EM_CALLBACK_THREAD_CONTEXT_MAIN_RUNTIME_THREAD); |
| 361 | emscripten_set_touchend_callback_on_thread( |
| 362 | canvas, nullptr, 0, nullptr, EM_CALLBACK_THREAD_CONTEXT_MAIN_RUNTIME_THREAD); |
| 363 | emscripten_set_touchcancel_callback_on_thread( |
| 364 | canvas, nullptr, 0, nullptr, EM_CALLBACK_THREAD_CONTEXT_MAIN_RUNTIME_THREAD); |
| 365 | |
| 366 | emscripten_set_mouseenter_callback_on_thread( |
| 367 | canvas, nullptr, 0, nullptr, EM_CALLBACK_THREAD_CONTEXT_MAIN_RUNTIME_THREAD); |
| 368 | emscripten_set_mouseleave_callback_on_thread( |
| 369 | canvas, nullptr, 0, nullptr, EM_CALLBACK_THREAD_CONTEXT_MAIN_RUNTIME_THREAD); |
| 370 | |
| 371 | emscripten_set_wheel_callback_on_thread( |
| 372 | canvas, nullptr, 0, nullptr, EM_CALLBACK_THREAD_CONTEXT_MAIN_RUNTIME_THREAD); |
| 373 | |
| 374 | emscripten_set_focus_callback_on_thread( |
| 375 | canvas, nullptr, 0, nullptr, EM_CALLBACK_THREAD_CONTEXT_MAIN_RUNTIME_THREAD); |
| 376 | emscripten_set_blur_callback_on_thread( |
| 377 | canvas, nullptr, 0, nullptr, EM_CALLBACK_THREAD_CONTEXT_MAIN_RUNTIME_THREAD); |
| 378 | |
| 379 | emscripten_set_keydown_callback_on_thread( |
| 380 | canvas, nullptr, 0, nullptr, EM_CALLBACK_THREAD_CONTEXT_MAIN_RUNTIME_THREAD); |
| 381 | emscripten_set_keyup_callback_on_thread( |
| 382 | canvas, nullptr, 0, nullptr, EM_CALLBACK_THREAD_CONTEXT_MAIN_RUNTIME_THREAD); |
| 383 | emscripten_set_keypress_callback_on_thread( |
| 384 | canvas, nullptr, 0, nullptr, EM_CALLBACK_THREAD_CONTEXT_MAIN_RUNTIME_THREAD); |
| 385 | |
| 386 | internals.RegisteredUICallbacks = false; |
| 387 | } |
| 388 | |
| 389 | //------------------------------------------------------------------------------ |
| 390 | void vtkWebAssemblyRenderWindowInteractor::ProcessEvent(int type, const std::uint8_t* event) |
no outgoing calls
no test coverage detected