]> git.mxchange.org Git - simgear.git/commit
Implement Canvas single/double/tripple click handling.
authorThomas Geymayer <tomgey@gmail.com>
Thu, 6 Dec 2012 22:13:19 +0000 (23:13 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Thu, 6 Dec 2012 22:16:36 +0000 (23:16 +0100)
commitfc49be1e05fb2bc13fb26c43cf6efeed14033a9d
tree0796420f8ad1753cc53d688da126e78fd59942a6
parentd06d94c7672b511ae989d3c85be1389682d3ed51
Implement Canvas single/double/tripple click handling.

 - Implement click event creation like specified in
   DOM Level 3:
   * Check for max move distance between mousedown/up
     and clicks
   * Check for click timeout
   * Count clicks and report double clicks
14 files changed:
simgear/canvas/CMakeLists.txt
simgear/canvas/Canvas.cxx
simgear/canvas/Canvas.hxx
simgear/canvas/CanvasEvent.cxx
simgear/canvas/CanvasEvent.hxx
simgear/canvas/CanvasEventManager.cxx [new file with mode: 0644]
simgear/canvas/CanvasEventManager.hxx [new file with mode: 0644]
simgear/canvas/CanvasEventVisitor.cxx
simgear/canvas/CanvasEventVisitor.hxx
simgear/canvas/MouseEvent.hxx
simgear/canvas/canvas_fwd.hxx
simgear/canvas/elements/CanvasElement.cxx
simgear/canvas/elements/CanvasElement.hxx
simgear/canvas/elements/CanvasGroup.cxx