| 19 | extern "C" |
| 20 | { |
| 21 | EMSCRIPTEN_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 |