MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / emsDropEvents

Function emsDropEvents

source/MRViewer/MRMouseController.cpp:21–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19extern "C"
20{
21EMSCRIPTEN_KEEPALIVE void emsDropEvents()
22{
23 auto& viewer = MR::getViewerInstance();
24 const auto& ctl = viewer.mouseController();
25 if ( ctl.isPressed( MR::MouseButton::Left ) )
26 viewer.mouseUp( MR::MouseButton::Left, 0 );
27 if ( ctl.isPressed( MR::MouseButton::Right ) )
28 viewer.mouseUp( MR::MouseButton::Right, 0 );
29 if ( ctl.isPressed( MR::MouseButton::Middle ) )
30 viewer.mouseUp( MR::MouseButton::Middle, 0 );
31}
32}
33
34#endif

Callers

nothing calls this directly

Calls 2

isPressedMethod · 0.80
mouseUpMethod · 0.80

Tested by

no test coverage detected