Mercurial > hg > orthanc-stone
comparison Samples/WebAssembly/BasicScene.cpp @ 631:ea8322566596
notes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 08 May 2019 18:26:52 +0200 |
parents | 0925b27e8750 |
children | 419e5662d7a5 |
comparison
equal
deleted
inserted
replaced
626:cc69acccd9f8 | 631:ea8322566596 |
---|---|
341 } | 341 } |
342 | 342 |
343 | 343 |
344 void OrthancStone::WebAssemblyViewport::SetupEvents(const std::string& canvas) | 344 void OrthancStone::WebAssemblyViewport::SetupEvents(const std::string& canvas) |
345 { | 345 { |
346 //emscripten_set_click_callback(canvas.c_str(), this, false, OnMouseEvent); | 346 if (0) |
347 emscripten_set_mousedown_callback(canvas.c_str(), this, false, OnMouseEvent); | 347 { |
348 emscripten_set_mousemove_callback(canvas.c_str(), this, false, OnMouseEvent); | 348 emscripten_set_click_callback(canvas.c_str(), this, false, OnMouseEvent); |
349 emscripten_set_mouseup_callback(canvas.c_str(), this, false, OnMouseEvent); | 349 } |
350 else | |
351 { | |
352 emscripten_set_mousedown_callback(canvas.c_str(), this, false, OnMouseEvent); | |
353 emscripten_set_mousemove_callback(canvas.c_str(), this, false, OnMouseEvent); | |
354 emscripten_set_mouseup_callback(canvas.c_str(), this, false, OnMouseEvent); | |
355 } | |
350 } | 356 } |
351 | 357 |
352 | 358 |
353 | 359 |
354 | 360 |