reflexion 0.1.38 → 0.1.39

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/.doc/ext/reflex/capture_event.cpp +1 -1
  3. data/.doc/ext/reflex/event.cpp +7 -2
  4. data/.doc/ext/reflex/frame_event.cpp +25 -8
  5. data/.doc/ext/reflex/motion_event.cpp +4 -4
  6. data/.doc/ext/reflex/pointer.cpp +15 -6
  7. data/.doc/ext/reflex/pointer_event.cpp +0 -1
  8. data/.doc/ext/reflex/polygon_shape.cpp +1 -1
  9. data/.doc/ext/reflex/scroll_event.cpp +1 -1
  10. data/.doc/ext/reflex/style.cpp +2 -2
  11. data/.doc/ext/reflex/wheel_event.cpp +1 -1
  12. data/ChangeLog.md +14 -6
  13. data/VERSION +1 -1
  14. data/ext/reflex/capture_event.cpp +1 -1
  15. data/ext/reflex/defs.h +2 -2
  16. data/ext/reflex/event.cpp +7 -2
  17. data/ext/reflex/frame_event.cpp +26 -7
  18. data/ext/reflex/motion_event.cpp +4 -4
  19. data/ext/reflex/pointer.cpp +16 -6
  20. data/ext/reflex/pointer_event.cpp +0 -1
  21. data/ext/reflex/polygon_shape.cpp +1 -1
  22. data/ext/reflex/scroll_event.cpp +1 -1
  23. data/ext/reflex/selector.h +1 -1
  24. data/ext/reflex/style.cpp +2 -2
  25. data/ext/reflex/wheel_event.cpp +1 -1
  26. data/include/reflex/event.h +29 -13
  27. data/include/reflex/pointer.h +5 -3
  28. data/include/reflex/shape.h +1 -1
  29. data/lib/reflex/frame_event.rb +12 -2
  30. data/lib/reflex/pointer.rb +1 -1
  31. data/lib/reflex/pointer_event.rb +2 -2
  32. data/reflex.gemspec +4 -4
  33. data/src/body.h +1 -1
  34. data/src/event.cpp +83 -14
  35. data/src/event.h +11 -5
  36. data/src/fixture.h +1 -1
  37. data/src/ios/application.h +1 -1
  38. data/src/ios/event.mm +2 -1
  39. data/src/osx/application.h +1 -1
  40. data/src/osx/event.h +12 -6
  41. data/src/osx/event.mm +2 -1
  42. data/src/osx/native_window.mm +1 -1
  43. data/src/pointer.cpp +34 -18
  44. data/src/pointer.h +4 -2
  45. data/src/selector.h +1 -1
  46. data/src/shape.h +1 -1
  47. data/src/style.h +1 -1
  48. data/src/timer.h +1 -1
  49. data/src/view.cpp +149 -67
  50. data/src/view.h +1 -1
  51. data/src/win32/defs.h +1 -1
  52. data/src/window.cpp +25 -22
  53. data/src/window.h +15 -6
  54. data/src/world.h +1 -1
  55. data/test/test_event.rb +18 -15
  56. data/test/test_frame_event.rb +20 -16
  57. data/test/test_pointer.rb +20 -16
  58. data/test/test_pointer_event.rb +21 -21
  59. metadata +10 -10
@@ -30,7 +30,7 @@ namespace Reflex
30
30
 
31
31
  ~Event ();
32
32
 
33
- void block (bool parent = false);
33
+ void block (bool parent = true);
34
34
 
35
35
  bool is_blocked () const;
36
36
 
@@ -114,8 +114,8 @@ namespace Reflex
114
114
 
115
115
  FrameEvent (
116
116
  const Bounds& frame,
117
- coord dx, coord dy,
118
- coord dwidth, coord dheight,
117
+ coord dx, coord dy, coord dz,
118
+ coord dwidth, coord dheight, coord ddepth,
119
119
  float zoom = 1, float dzoom = 0,
120
120
  float angle = 0, float dangle = 0);
121
121
 
@@ -132,10 +132,14 @@ namespace Reflex
132
132
 
133
133
  coord dy () const;
134
134
 
135
+ coord dz () const;
136
+
135
137
  coord dwidth () const;
136
138
 
137
139
  coord dheight () const;
138
140
 
141
+ coord ddepth () const;
142
+
139
143
  float zoom () const;
140
144
 
141
145
  float dzoom () const;
@@ -163,7 +167,7 @@ namespace Reflex
163
167
  };// FrameEvent
164
168
 
165
169
 
166
- struct ScrollEvent : public Event
170
+ class ScrollEvent : public Event
167
171
  {
168
172
 
169
173
  public:
@@ -193,7 +197,7 @@ namespace Reflex
193
197
  };// ScrollEvent
194
198
 
195
199
 
196
- struct FocusEvent : public Event
200
+ class FocusEvent : public Event
197
201
  {
198
202
 
199
203
  public:
@@ -223,7 +227,7 @@ namespace Reflex
223
227
  };// FocusEvent
224
228
 
225
229
 
226
- struct KeyEvent : public Event
230
+ class KeyEvent : public Event
227
231
  {
228
232
 
229
233
  public:
@@ -291,7 +295,7 @@ namespace Reflex
291
295
  };// PointerEvent
292
296
 
293
297
 
294
- struct WheelEvent : public Event
298
+ class WheelEvent : public Event
295
299
  {
296
300
 
297
301
  public:
@@ -325,7 +329,7 @@ namespace Reflex
325
329
  };// WheelEvent
326
330
 
327
331
 
328
- struct CaptureEvent : public Event
332
+ class CaptureEvent : public Event
329
333
  {
330
334
 
331
335
  public:
@@ -351,7 +355,7 @@ namespace Reflex
351
355
  };// CaptureEvent
352
356
 
353
357
 
354
- struct TimerEvent : public Event
358
+ class TimerEvent : public Event
355
359
  {
356
360
 
357
361
  public:
@@ -387,7 +391,7 @@ namespace Reflex
387
391
  };// TimerEvent
388
392
 
389
393
 
390
- struct ContactEvent : public Event
394
+ class ContactEvent : public Event
391
395
  {
392
396
 
393
397
  public:
@@ -421,12 +425,24 @@ namespace Reflex
421
425
  };// ContactEvent
422
426
 
423
427
 
424
- struct MotionEvent : public Event
428
+ class MotionEvent : public Event
425
429
  {
426
430
 
427
- Point gravity;
431
+ public:
432
+
433
+ MotionEvent (const Point& gravity = Point(0, 9.8));
434
+
435
+ MotionEvent dup () const;
436
+
437
+ const Point& gravity () const;
438
+
439
+ struct Data;
440
+
441
+ Xot::PSharedImpl<Data> self;
442
+
443
+ private:
428
444
 
429
- MotionEvent (const Point& gravity = Point(0, 9.8));
445
+ MotionEvent (const MotionEvent* src);
430
446
 
431
447
  };// MotionEvent
432
448
 
@@ -63,8 +63,8 @@ namespace Reflex
63
63
 
64
64
  Pointer (
65
65
  ID id, uint type, Action action,
66
- const Point& position, uint modifiers, uint click_count, bool drag,
67
- double time);
66
+ const Point& position, uint modifiers, bool drag,
67
+ uint click_count, uint view_index, double time);
68
68
 
69
69
  Pointer (const This& obj);
70
70
 
@@ -82,9 +82,11 @@ namespace Reflex
82
82
 
83
83
  uint modifiers () const;
84
84
 
85
+ bool is_drag () const;
86
+
85
87
  uint click_count () const;
86
88
 
87
- bool is_drag () const;
89
+ uint view_index () const;
88
90
 
89
91
  double time () const;
90
92
 
@@ -18,7 +18,7 @@ namespace Reflex
18
18
  class Event;
19
19
  class DrawEvent;
20
20
  class FrameEvent;
21
- struct ContactEvent;
21
+ class ContactEvent;
22
22
 
23
23
  class View;
24
24
  class Fixture;
@@ -8,6 +8,7 @@ module Reflex
8
8
 
9
9
  alias dw dwidth
10
10
  alias dh dheight
11
+ alias dd ddepth
11
12
  alias dpos dposition
12
13
 
13
14
  def x()
@@ -18,6 +19,10 @@ module Reflex
18
19
  frame.y
19
20
  end
20
21
 
22
+ def z()
23
+ frame.z
24
+ end
25
+
21
26
  def width()
22
27
  frame.width
23
28
  end
@@ -26,12 +31,17 @@ module Reflex
26
31
  frame.height
27
32
  end
28
33
 
34
+ def depth()
35
+ frame.depth
36
+ end
37
+
29
38
  alias w width
30
39
  alias h height
40
+ alias d depth
31
41
 
32
42
  def inspect()
33
- "#<Reflex::FrameEvent x:%g(%g) y:%g(%g) w:%g(%g) h:%g(%g) zoom:%g(%g) angle:%g(%g)>" %
34
- [x, dx, y, dy, w, dw, h, dh, zoom, dzoom, angle, dangle]
43
+ "#<Reflex::FrameEvent x:%g(%g) y:%g(%g) z:%g(%g) w:%g(%g) h:%g(%g) d:%g(%g) zoom:%g(%g) angle:%g(%g)>" %
44
+ [x, dx, y, dy, z, dz, w, dw, h, dh, d, dd, zoom, dzoom, angle, dangle]
35
45
  end
36
46
 
37
47
  end# FrameEvent
@@ -95,7 +95,7 @@ module Reflex
95
95
  end
96
96
 
97
97
  def inspect()
98
- "#<Reflex::Pointer id:#{id} #{types} #{action} (#{x.round 2}, #{y.round 2}) mod:#{modifiers} click:#{click_count} drag:#{drag?} time:#{time.round 2}>"
98
+ "#<Reflex::Pointer id:#{id} #{types} #{action} (#{x.round 2}, #{y.round 2}) mod:#{modifiers} drag:#{drag?} click:#{click_count} view:#{view_index} time:#{time.round 2}>"
99
99
  end
100
100
 
101
101
  end# Pointer
@@ -14,7 +14,7 @@ module Reflex
14
14
  :types, :mouse?, :touch?, :pen?,
15
15
  :mouse_left?, :left?, :mouse_right?, :right?, :mouse_middle?, :middle?,
16
16
  :action, :down?, :up?, :move?, :cancel?, :stay?,
17
- :position, :pos, :x, :y, :modifiers, :click_count, :drag?,
17
+ :position, :pos, :x, :y, :modifiers, :drag?, :click_count, :view_index,
18
18
  :time, :prev
19
19
 
20
20
  def pointers()
@@ -22,7 +22,7 @@ module Reflex
22
22
  end
23
23
 
24
24
  def inspect()
25
- "#<Reflex::PointerEvent id:#{id} #{types} #{action} (#{x.round 2}, #{y.round 2}) mod:#{modifiers} click:#{click_count} drag:#{drag?} time:#{time.round 2}>"
25
+ "#<Reflex::PointerEvent id:#{id} #{types} #{action} (#{x.round 2}, #{y.round 2}) mod:#{modifiers} drag:#{drag?} click:#{click_count} view:#{view_index} time:#{time.round 2}>"
26
26
  end
27
27
 
28
28
  private
data/reflex.gemspec CHANGED
@@ -28,10 +28,10 @@ Gem::Specification.new do |s|
28
28
  s.platform = Gem::Platform::RUBY
29
29
  s.required_ruby_version = '>= 2.7.0'
30
30
 
31
- s.add_runtime_dependency 'xot', '~> 0.1.35'
32
- s.add_runtime_dependency 'rucy', '~> 0.1.35'
33
- s.add_runtime_dependency 'beeps', '~> 0.1.36'
34
- s.add_runtime_dependency 'rays', '~> 0.1.36'
31
+ s.add_runtime_dependency 'xot', '~> 0.1.36'
32
+ s.add_runtime_dependency 'rucy', '~> 0.1.36'
33
+ s.add_runtime_dependency 'beeps', '~> 0.1.37'
34
+ s.add_runtime_dependency 'rays', '~> 0.1.37'
35
35
 
36
36
  s.add_development_dependency 'rake'
37
37
  s.add_development_dependency 'test-unit'
data/src/body.h CHANGED
@@ -7,7 +7,7 @@
7
7
  #include <xot/noncopyable.h>
8
8
  #include <xot/pimpl.h>
9
9
  #include <rays/point.h>
10
- #include <reflex/defs.h>
10
+ #include "reflex/defs.h"
11
11
 
12
12
 
13
13
  class b2Body;
data/src/event.cpp CHANGED
@@ -19,10 +19,10 @@ namespace Reflex
19
19
 
20
20
  double time;
21
21
 
22
- Xot::PSharedImpl<Data> parent;
22
+ Data* parent = NULL;
23
23
 
24
24
  Data (bool blocked = false, double time = Xot::time())
25
- : blocked(blocked), time(time), parent(NULL)
25
+ : blocked(blocked), time(time)
26
26
  {
27
27
  }
28
28
 
@@ -42,7 +42,7 @@ namespace Reflex
42
42
  Event::Event (const Event* src)
43
43
  : self(new Data(*src->self))
44
44
  {
45
- self->parent = src->self;
45
+ self->parent = src->self.get();
46
46
  }
47
47
 
48
48
  Event::~Event ()
@@ -219,7 +219,7 @@ namespace Reflex
219
219
 
220
220
  Bounds frame;
221
221
 
222
- coord dx, dy, dw, dh;
222
+ coord dx, dy, dz, dw, dh, dd;
223
223
 
224
224
  float zoom, dzoom;
225
225
 
@@ -227,10 +227,11 @@ namespace Reflex
227
227
 
228
228
  Data (
229
229
  const Bounds& frame = 0,
230
- coord dx = 0, coord dy = 0, coord dw = 0, coord dh = 0,
230
+ coord dx = 0, coord dy = 0, coord dz = 0,
231
+ coord dw = 0, coord dh = 0, coord dd = 0,
231
232
  float zoom = 0, float dzoom = 0,
232
233
  float angle = 0, float dangle = 0)
233
- : frame(frame), dx(dx), dy(dy), dw(dw), dh(dh),
234
+ : frame(frame), dx(dx), dy(dy), dz(dz), dw(dw), dh(dh), dd(dd),
234
235
  zoom(zoom), dzoom(dzoom), angle(angle), dangle(dangle)
235
236
  {
236
237
  }
@@ -243,9 +244,11 @@ namespace Reflex
243
244
  }
244
245
 
245
246
  FrameEvent::FrameEvent (
246
- const Bounds& frame, coord dx, coord dy, coord dwidth, coord dheight,
247
+ const Bounds& frame,
248
+ coord dx, coord dy, coord dz, coord dwidth, coord dheight, coord ddepth,
247
249
  float zoom, float dzoom, float angle, float dangle)
248
- : self(new Data(frame, dx, dy, dwidth, dheight, zoom, dzoom, angle, dangle))
250
+ : self(new Data(
251
+ frame, dx, dy, dz, dwidth, dheight, ddepth, zoom, dzoom, angle, dangle))
249
252
  {
250
253
  }
251
254
 
@@ -254,8 +257,8 @@ namespace Reflex
254
257
  float zoom, float prev_zoom, float angle, float prev_angle)
255
258
  : self(new Data(
256
259
  frame,
257
- frame.x - prev_frame.x, frame.y - prev_frame.y,
258
- frame.w - prev_frame.w, frame.h - prev_frame.h,
260
+ frame.x - prev_frame.x, frame.y - prev_frame.y, frame.z - prev_frame.z,
261
+ frame.w - prev_frame.w, frame.h - prev_frame.h, frame.d - prev_frame.d,
259
262
  zoom, zoom - prev_zoom,
260
263
  angle, angle - prev_angle))
261
264
  {
@@ -290,6 +293,12 @@ namespace Reflex
290
293
  return self->dy;
291
294
  }
292
295
 
296
+ coord
297
+ FrameEvent::dz () const
298
+ {
299
+ return self->dz;
300
+ }
301
+
293
302
  coord
294
303
  FrameEvent::dwidth () const
295
304
  {
@@ -302,6 +311,12 @@ namespace Reflex
302
311
  return self->dh;
303
312
  }
304
313
 
314
+ coord
315
+ FrameEvent::ddepth () const
316
+ {
317
+ return self->dd;
318
+ }
319
+
305
320
  float
306
321
  FrameEvent::zoom () const
307
322
  {
@@ -329,13 +344,13 @@ namespace Reflex
329
344
  bool
330
345
  FrameEvent::is_move () const
331
346
  {
332
- return self->dx != 0 || self->dy != 0;
347
+ return self->dx != 0 || self->dy != 0 || self->dz != 0;
333
348
  }
334
349
 
335
350
  bool
336
351
  FrameEvent::is_resize () const
337
352
  {
338
- return self->dw != 0 || self->dh != 0;
353
+ return self->dw != 0 || self->dh != 0 || self->dd != 0;
339
354
  }
340
355
 
341
356
  bool
@@ -565,21 +580,35 @@ namespace Reflex
565
580
 
566
581
  bool captured;
567
582
 
583
+ Data* parent = NULL;
584
+
568
585
  Data (bool captured = false)
569
586
  : captured(captured)
570
587
  {
571
588
  }
572
589
 
590
+ void increment_view_indices ()
591
+ {
592
+ for (auto& pointer : pointers)
593
+ Pointer_set_view_index(&pointer, pointer.view_index() + 1);
594
+
595
+ if (parent) parent->increment_view_indices();
596
+ }
597
+
573
598
  };// PointerEvent::Data
574
599
 
575
600
 
576
601
  void
577
- PointerEvent_add_pointer (PointerEvent* pthis, const Pointer& pointer)
602
+ PointerEvent_add_pointer (
603
+ PointerEvent* pthis, const Pointer& pointer,
604
+ std::function<void(Pointer*)> fun)
578
605
  {
579
606
  if (!pthis)
580
607
  argument_error(__FILE__, __LINE__);
581
608
 
582
609
  pthis->self->pointers.emplace_back(pointer);
610
+
611
+ if (fun) fun(&pthis->self->pointers.back());
583
612
  }
584
613
 
585
614
  void
@@ -625,6 +654,15 @@ namespace Reflex
625
654
  fun(pointer);
626
655
  }
627
656
 
657
+ void
658
+ PointerEvent_increment_view_indices (PointerEvent* pthis)
659
+ {
660
+ if (!pthis)
661
+ argument_error(__FILE__, __LINE__);
662
+
663
+ pthis->self->increment_view_indices();
664
+ }
665
+
628
666
  void
629
667
  PointerEvent_set_captured (PointerEvent* pthis, bool captured)
630
668
  {
@@ -687,6 +725,7 @@ namespace Reflex
687
725
  PointerEvent::PointerEvent (const PointerEvent* src)
688
726
  : Event(src), self(new Data(*src->self))
689
727
  {
728
+ self->parent = src->self.get();
690
729
  }
691
730
 
692
731
  PointerEvent
@@ -992,9 +1031,39 @@ namespace Reflex
992
1031
  }
993
1032
 
994
1033
 
1034
+ struct MotionEvent::Data
1035
+ {
1036
+
1037
+ Point gravity;
1038
+
1039
+ Data (const Point& gravity)
1040
+ : gravity(gravity)
1041
+ {
1042
+ }
1043
+
1044
+ };// MotionEvent::Data
1045
+
1046
+
995
1047
  MotionEvent::MotionEvent (const Point& gravity)
996
- : gravity(gravity)
1048
+ : self(new Data(gravity))
1049
+ {
1050
+ }
1051
+
1052
+ MotionEvent::MotionEvent (const MotionEvent* src)
1053
+ : Event(src), self(new Data(*src->self))
1054
+ {
1055
+ }
1056
+
1057
+ MotionEvent
1058
+ MotionEvent::dup () const
1059
+ {
1060
+ return MotionEvent(this);
1061
+ }
1062
+
1063
+ const Point&
1064
+ MotionEvent::gravity () const
997
1065
  {
1066
+ return self->gravity;
998
1067
  }
999
1068
 
1000
1069
 
data/src/event.h CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
  #include <functional>
8
- #include <reflex/event.h>
8
+ #include "reflex/event.h"
9
9
 
10
10
 
11
11
  namespace Reflex
@@ -22,20 +22,26 @@ namespace Reflex
22
22
  void KeyEvent_set_captured (KeyEvent* pthis, bool captured);
23
23
 
24
24
 
25
- void PointerEvent_add_pointer (PointerEvent* pthis, const Pointer& pointer);
25
+ void PointerEvent_add_pointer (
26
+ PointerEvent* pthis, const Pointer& pointer,
27
+ std::function<void(Pointer*)> fun = NULL);
26
28
 
27
- void PointerEvent_erase_pointer (PointerEvent* pthis, Pointer::ID id);
29
+ void PointerEvent_erase_pointer (PointerEvent* pthis, Pointer::ID id);
28
30
 
29
31
  Pointer& PointerEvent_pointer_at (PointerEvent* pthis, size_t index);
30
32
 
31
33
  void PointerEvent_each_pointer (
32
34
  const PointerEvent* pthis, std::function<void(const Pointer&)> fun);
33
35
 
36
+ void PointerEvent_increment_view_indices (PointerEvent* pthis);
37
+
34
38
  void PointerEvent_set_captured (PointerEvent* pthis, bool captured);
35
39
 
36
- void PointerEvent_update_for_child_view (PointerEvent* pthis, const View* view);
40
+ void PointerEvent_update_for_child_view (
41
+ PointerEvent* pthis, const View* view);
37
42
 
38
- void PointerEvent_update_for_capturing_view (PointerEvent* pthis, const View* view);
43
+ void PointerEvent_update_for_capturing_view (
44
+ PointerEvent* pthis, const View* view);
39
45
 
40
46
 
41
47
  void WheelEvent_set_position (WheelEvent* pthis, const Point& position);
data/src/fixture.h CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  #include <memory>
8
8
  #include <xot/noncopyable.h>
9
- #include <reflex/defs.h>
9
+ #include "reflex/defs.h"
10
10
 
11
11
 
12
12
  class b2Fixture;
@@ -4,7 +4,7 @@
4
4
  #define __REFLEX_SRC_IOS_APPLICATION_H__
5
5
 
6
6
 
7
- #include <reflex/application.h>
7
+ #include "reflex/application.h"
8
8
 
9
9
 
10
10
  @class ReflexAppDelegate;
data/src/ios/event.mm CHANGED
@@ -108,8 +108,9 @@ namespace Reflex
108
108
  action,
109
109
  to_point([touch locationInView: view]),
110
110
  get_modifiers(event),
111
- (uint) touch.tapCount,
112
111
  action == Pointer::MOVE,
112
+ (uint) touch.tapCount,
113
+ 0,
113
114
  time);
114
115
 
115
116
  if (prev_pointers)
@@ -4,7 +4,7 @@
4
4
  #define __REFLEX_SRC_OSX_APPLICATION_H__
5
5
 
6
6
 
7
- #include <reflex/application.h>
7
+ #include "reflex/application.h"
8
8
 
9
9
 
10
10
  @class ReflexAppDelegate;
data/src/osx/event.h CHANGED
@@ -12,18 +12,22 @@ namespace Reflex
12
12
  {
13
13
 
14
14
 
15
- struct NativeKeyEvent : public KeyEvent
15
+ class NativeKeyEvent : public KeyEvent
16
16
  {
17
17
 
18
- NativeKeyEvent (NSEvent* event, Action action);
18
+ public:
19
+
20
+ NativeKeyEvent (NSEvent* event, Action action);
19
21
 
20
22
  };// NativeKeyEvent
21
23
 
22
24
 
23
- struct NativeFlagKeyEvent : public KeyEvent
25
+ class NativeFlagKeyEvent : public KeyEvent
24
26
  {
25
27
 
26
- NativeFlagKeyEvent (NSEvent* event);
28
+ public:
29
+
30
+ NativeFlagKeyEvent (NSEvent* event);
27
31
 
28
32
  };// NativeFlagKeyEvent
29
33
 
@@ -39,10 +43,12 @@ namespace Reflex
39
43
  };// NativePointerEvent
40
44
 
41
45
 
42
- struct NativeWheelEvent : public WheelEvent
46
+ class NativeWheelEvent : public WheelEvent
43
47
  {
44
48
 
45
- NativeWheelEvent (NSEvent* event, NSView* view);
49
+ public:
50
+
51
+ NativeWheelEvent (NSEvent* event, NSView* view);
46
52
 
47
53
  };// NativeWheelEvent
48
54
 
data/src/osx/event.mm CHANGED
@@ -286,8 +286,9 @@ namespace Reflex
286
286
  action,
287
287
  get_pointer_position(event, view),
288
288
  get_modifiers(event),
289
- action == Pointer::MOVE && !dragging ? 0 : (uint) [event clickCount],
290
289
  dragging,
290
+ action == Pointer::MOVE && !dragging ? 0 : (uint) [event clickCount],
291
+ 0,
291
292
  time()));
292
293
  }
293
294
 
@@ -288,7 +288,7 @@ update_pixel_density (Reflex::Window* window)
288
288
 
289
289
  if (dpos != 0 || dsize != 0)
290
290
  {
291
- Reflex::FrameEvent e(b, dpos.x, dpos.y, dsize.x, dsize.y);
291
+ Reflex::FrameEvent e(b, dpos.x, dpos.y, 0, dsize.x, dsize.y, 0);
292
292
  if (dpos != 0) win->on_move(&e);
293
293
  if (dsize != 0)
294
294
  {