reflexion 0.1.20 → 0.1.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/.doc/ext/reflex/capture_event.cpp +6 -5
  3. data/.doc/ext/reflex/contact_event.cpp +18 -16
  4. data/.doc/ext/reflex/draw_event.cpp +10 -8
  5. data/.doc/ext/reflex/event.cpp +10 -10
  6. data/.doc/ext/reflex/focus_event.cpp +18 -17
  7. data/.doc/ext/reflex/frame_event.cpp +17 -17
  8. data/.doc/ext/reflex/key_event.cpp +227 -28
  9. data/.doc/ext/reflex/native.cpp +2 -0
  10. data/.doc/ext/reflex/pointer.cpp +158 -0
  11. data/.doc/ext/reflex/pointer_event.cpp +32 -91
  12. data/.doc/ext/reflex/scroll_event.cpp +14 -17
  13. data/.doc/ext/reflex/selector.cpp +8 -0
  14. data/.doc/ext/reflex/timer.cpp +9 -1
  15. data/.doc/ext/reflex/timer_event.cpp +4 -13
  16. data/.doc/ext/reflex/update_event.cpp +6 -5
  17. data/.doc/ext/reflex/view.cpp +57 -0
  18. data/.doc/ext/reflex/wheel_event.cpp +39 -22
  19. data/.doc/ext/reflex/window.cpp +41 -0
  20. data/VERSION +1 -1
  21. data/ext/reflex/capture_event.cpp +6 -5
  22. data/ext/reflex/contact_event.cpp +18 -16
  23. data/ext/reflex/draw_event.cpp +9 -7
  24. data/ext/reflex/event.cpp +11 -11
  25. data/ext/reflex/focus_event.cpp +18 -17
  26. data/ext/reflex/frame_event.cpp +16 -16
  27. data/ext/reflex/key_event.cpp +228 -28
  28. data/ext/reflex/native.cpp +2 -0
  29. data/ext/reflex/pointer.cpp +170 -0
  30. data/ext/reflex/pointer_event.cpp +31 -96
  31. data/ext/reflex/scroll_event.cpp +15 -18
  32. data/ext/reflex/selector.cpp +9 -0
  33. data/ext/reflex/timer.cpp +15 -6
  34. data/ext/reflex/timer_event.cpp +9 -19
  35. data/ext/reflex/update_event.cpp +6 -5
  36. data/ext/reflex/view.cpp +67 -3
  37. data/ext/reflex/wheel_event.cpp +40 -21
  38. data/ext/reflex/window.cpp +49 -3
  39. data/include/reflex/defs.h +140 -106
  40. data/include/reflex/event.h +232 -124
  41. data/include/reflex/pointer.h +107 -0
  42. data/include/reflex/ruby/pointer.h +41 -0
  43. data/include/reflex/ruby/view.h +9 -0
  44. data/include/reflex/ruby/window.h +9 -0
  45. data/include/reflex/selector.h +1 -1
  46. data/include/reflex/shape.h +2 -2
  47. data/include/reflex/view.h +6 -4
  48. data/include/reflex/window.h +14 -8
  49. data/lib/reflex/application.rb +3 -3
  50. data/lib/reflex/autoinit.rb +1 -1
  51. data/lib/reflex/button.rb +7 -7
  52. data/lib/reflex/capture_event.rb +7 -7
  53. data/lib/reflex/contact_event.rb +10 -10
  54. data/lib/reflex/draw_event.rb +2 -2
  55. data/lib/reflex/ellipse_shape.rb +2 -2
  56. data/lib/reflex/focus_event.rb +11 -11
  57. data/lib/reflex/frame_event.rb +5 -5
  58. data/lib/reflex/helper.rb +20 -20
  59. data/lib/reflex/image_view.rb +2 -2
  60. data/lib/reflex/key_event.rb +12 -12
  61. data/lib/reflex/model.rb +22 -22
  62. data/lib/reflex/model_owner.rb +7 -7
  63. data/lib/reflex/model_view.rb +1 -1
  64. data/lib/reflex/module.rb +5 -5
  65. data/lib/reflex/pointer.rb +107 -0
  66. data/lib/reflex/pointer_event.rb +16 -54
  67. data/lib/reflex/polygon_shape.rb +2 -2
  68. data/lib/reflex/reflex.rb +3 -3
  69. data/lib/reflex/scroll_event.rb +1 -1
  70. data/lib/reflex/selector.rb +4 -4
  71. data/lib/reflex/shape.rb +13 -13
  72. data/lib/reflex/style.rb +11 -11
  73. data/lib/reflex/style_length.rb +1 -1
  74. data/lib/reflex/text_view.rb +2 -2
  75. data/lib/reflex/timer.rb +2 -2
  76. data/lib/reflex/timer_event.rb +3 -2
  77. data/lib/reflex/update_event.rb +1 -1
  78. data/lib/reflex/view.rb +32 -32
  79. data/lib/reflex/wheel_event.rb +2 -10
  80. data/lib/reflex/window.rb +8 -7
  81. data/lib/reflex.rb +1 -0
  82. data/lib/reflexion.rb +17 -17
  83. data/reflex.gemspec +5 -5
  84. data/samples/reflexion/noise.rb +1 -1
  85. data/samples/tree.rb +1 -1
  86. data/src/event.cpp +792 -86
  87. data/src/event.h +47 -0
  88. data/src/image_view.cpp +2 -2
  89. data/src/ios/event.h +15 -3
  90. data/src/ios/event.mm +126 -11
  91. data/src/ios/view_controller.mm +51 -23
  92. data/src/ios/window.mm +18 -0
  93. data/src/osx/event.h +15 -4
  94. data/src/osx/event.mm +214 -24
  95. data/src/osx/native_window.mm +85 -18
  96. data/src/osx/window.mm +22 -0
  97. data/src/pointer.cpp +203 -0
  98. data/src/pointer.h +26 -0
  99. data/src/selector.cpp +1 -1
  100. data/src/shape.cpp +11 -13
  101. data/src/shape.h +1 -1
  102. data/src/view.cpp +205 -118
  103. data/src/view.h +5 -10
  104. data/src/window.cpp +346 -104
  105. data/src/window.h +28 -3
  106. data/src/world.cpp +6 -4
  107. data/test/helper.rb +3 -3
  108. data/test/test_application.rb +1 -1
  109. data/test/test_capture_event.rb +22 -6
  110. data/test/test_contact_event.rb +40 -0
  111. data/test/test_draw_event.rb +35 -0
  112. data/test/test_event.rb +33 -5
  113. data/test/test_focus_event.rb +34 -0
  114. data/test/test_frame_event.rb +38 -0
  115. data/test/test_has_frame.rb +11 -11
  116. data/test/test_key_event.rb +33 -0
  117. data/test/test_pointer.rb +149 -0
  118. data/test/test_pointer_event.rb +70 -104
  119. data/test/test_reflex.rb +1 -1
  120. data/test/test_scroll_event.rb +39 -0
  121. data/test/test_selector.rb +15 -8
  122. data/test/test_shape.rb +8 -8
  123. data/test/test_style.rb +13 -13
  124. data/test/test_style_length.rb +5 -5
  125. data/test/test_timer_event.rb +38 -0
  126. data/test/test_update_event.rb +29 -0
  127. data/test/test_view.rb +57 -30
  128. data/test/test_wheel_event.rb +40 -0
  129. data/test/test_window.rb +45 -26
  130. metadata +64 -35
data/ext/reflex/view.cpp CHANGED
@@ -130,6 +130,54 @@ RUCY_DEF0(update_layout)
130
130
  }
131
131
  RUCY_END
132
132
 
133
+ static
134
+ RUCY_DEF1(from_parent, point)
135
+ {
136
+ CHECK;
137
+ return value(THIS->from_parent(to<Rays::Point>(point)));
138
+ }
139
+ RUCY_END
140
+
141
+ static
142
+ RUCY_DEF1(to_parent, point)
143
+ {
144
+ CHECK;
145
+ return value(THIS->to_parent(to<Rays::Point>(point)));
146
+ }
147
+ RUCY_END
148
+
149
+ static
150
+ RUCY_DEF1(from_window, point)
151
+ {
152
+ CHECK;
153
+ return value(THIS->from_window(to<Rays::Point>(point)));
154
+ }
155
+ RUCY_END
156
+
157
+ static
158
+ RUCY_DEF1(to_window, point)
159
+ {
160
+ CHECK;
161
+ return value(THIS->to_window(to<Rays::Point>(point)));
162
+ }
163
+ RUCY_END
164
+
165
+ static
166
+ RUCY_DEF1(from_screen, point)
167
+ {
168
+ CHECK;
169
+ return value(THIS->from_screen(to<Rays::Point>(point)));
170
+ }
171
+ RUCY_END
172
+
173
+ static
174
+ RUCY_DEF1(to_screen, point)
175
+ {
176
+ CHECK;
177
+ return value(THIS->to_screen(to<Rays::Point>(point)));
178
+ }
179
+ RUCY_END
180
+
133
181
  static
134
182
  RUCY_DEF1(add_child, child)
135
183
  {
@@ -1034,6 +1082,14 @@ RUCY_DEF1(on_pointer_move, event)
1034
1082
  }
1035
1083
  RUCY_END
1036
1084
 
1085
+ static
1086
+ RUCY_DEF1(on_pointer_cancel, event)
1087
+ {
1088
+ CHECK;
1089
+ CALL(on_pointer_cancel(to<Reflex::PointerEvent*>(event)));
1090
+ }
1091
+ RUCY_END
1092
+
1037
1093
  static
1038
1094
  RUCY_DEF1(on_wheel, event)
1039
1095
  {
@@ -1102,6 +1158,13 @@ Init_view ()
1102
1158
  cView.define_private_method("start_timer", start_timer);
1103
1159
  cView.define_method("update_layout", update_layout);
1104
1160
 
1161
+ cView.define_method("from_parent", from_parent);
1162
+ cView.define_method( "to_parent", to_parent);
1163
+ cView.define_method("from_window", from_window);
1164
+ cView.define_method( "to_window", to_window);
1165
+ cView.define_method("from_screen", from_screen);
1166
+ cView.define_method( "to_screen", to_screen);
1167
+
1105
1168
  cView.define_method("add_child", add_child);
1106
1169
  cView.define_method("remove_child", remove_child);
1107
1170
  cView.define_method("clear_children", clear_children);
@@ -1201,9 +1264,10 @@ Init_view ()
1201
1264
  cView.define_method("on_key_down", on_key_down);
1202
1265
  cView.define_method("on_key_up", on_key_up);
1203
1266
  cView.define_method("on_pointer", on_pointer);
1204
- cView.define_method("on_pointer_down", on_pointer_down);
1205
- cView.define_method("on_pointer_up", on_pointer_up);
1206
- cView.define_method("on_pointer_move", on_pointer_move);
1267
+ cView.define_method("on_pointer_down", on_pointer_down);
1268
+ cView.define_method("on_pointer_up", on_pointer_up);
1269
+ cView.define_method("on_pointer_move", on_pointer_move);
1270
+ cView.define_method("on_pointer_cancel", on_pointer_cancel);
1207
1271
  cView.define_method("on_wheel", on_wheel);
1208
1272
  cView.define_method("on_capture", on_capture);
1209
1273
  cView.define_method("on_timer", on_timer);
@@ -20,13 +20,14 @@ RUCY_DEF_ALLOC(alloc, klass)
20
20
  RUCY_END
21
21
 
22
22
  static
23
- RUCY_DEF3(initialize, dx, dy, dz)
23
+ RUCY_DEF7(initialize, x, y, z, dx, dy, dz, modifiers)
24
24
  {
25
25
  CHECK;
26
26
 
27
- THIS->dx = to<coord>(dx);
28
- THIS->dy = to<coord>(dy);
29
- THIS->dz = to<coord>(dz);
27
+ *THIS = Reflex::WheelEvent(
28
+ to<coord>( x), to<coord>( y), to<coord>( z),
29
+ to<coord>(dx), to<coord>(dy), to<coord>(dz),
30
+ to<uint>(modifiers));
30
31
 
31
32
  return rb_call_super(0, NULL);
32
33
  }
@@ -36,56 +37,72 @@ static
36
37
  RUCY_DEF1(initialize_copy, obj)
37
38
  {
38
39
  CHECK;
39
- *THIS = to<Reflex::WheelEvent&>(obj);
40
+ *THIS = to<Reflex::WheelEvent&>(obj).dup();
40
41
  return self;
41
42
  }
42
43
  RUCY_END
43
44
 
44
45
  static
45
- RUCY_DEF0(dx)
46
+ RUCY_DEF0(x)
46
47
  {
47
48
  CHECK;
48
- return value(THIS->dx);
49
+ return value(THIS->position().x);
49
50
  }
50
51
  RUCY_END
51
52
 
52
53
  static
53
- RUCY_DEF0(dy)
54
+ RUCY_DEF0(y)
54
55
  {
55
56
  CHECK;
56
- return value(THIS->dy);
57
+ return value(THIS->position().y);
57
58
  }
58
59
  RUCY_END
59
60
 
60
61
  static
61
- RUCY_DEF0(dz)
62
+ RUCY_DEF0(z)
62
63
  {
63
64
  CHECK;
64
- return value(THIS->dz);
65
+ return value(THIS->position().z);
65
66
  }
66
67
  RUCY_END
67
68
 
68
69
  static
69
- RUCY_DEF0(x)
70
+ RUCY_DEF0(dx)
70
71
  {
71
72
  CHECK;
72
- return value(THIS->x);
73
+ return value(THIS->dposition().x);
73
74
  }
74
75
  RUCY_END
75
76
 
76
77
  static
77
- RUCY_DEF0(y)
78
+ RUCY_DEF0(dy)
78
79
  {
79
80
  CHECK;
80
- return value(THIS->y);
81
+ return value(THIS->dposition().y);
81
82
  }
82
83
  RUCY_END
83
84
 
84
85
  static
85
- RUCY_DEF0(z)
86
+ RUCY_DEF0(dz)
87
+ {
88
+ CHECK;
89
+ return value(THIS->dposition().z);
90
+ }
91
+ RUCY_END
92
+
93
+ static
94
+ RUCY_DEF0(position)
86
95
  {
87
96
  CHECK;
88
- return value(THIS->z);
97
+ return value(THIS->position());
98
+ }
99
+ RUCY_END
100
+
101
+ static
102
+ RUCY_DEF0(dposition)
103
+ {
104
+ CHECK;
105
+ return value(THIS->dposition());
89
106
  }
90
107
  RUCY_END
91
108
 
@@ -93,7 +110,7 @@ static
93
110
  RUCY_DEF0(modifiers)
94
111
  {
95
112
  CHECK;
96
- return value(THIS->modifiers);
113
+ return value(THIS->modifiers());
97
114
  }
98
115
  RUCY_END
99
116
 
@@ -109,12 +126,14 @@ Init_wheel_event ()
109
126
  cWheelEvent.define_alloc_func(alloc);
110
127
  cWheelEvent.define_private_method("initialize", initialize);
111
128
  cWheelEvent.define_private_method("initialize_copy", initialize_copy);
112
- cWheelEvent.define_method("dx", dx);
113
- cWheelEvent.define_method("dy", dy);
114
- cWheelEvent.define_method("dz", dz);
115
129
  cWheelEvent.define_method("x", x);
116
130
  cWheelEvent.define_method("y", y);
117
131
  cWheelEvent.define_method("z", z);
132
+ cWheelEvent.define_method("dx", dx);
133
+ cWheelEvent.define_method("dy", dy);
134
+ cWheelEvent.define_method("dz", dz);
135
+ cWheelEvent.define_method( "position", position);
136
+ cWheelEvent.define_method("dposition", dposition);
118
137
  cWheelEvent.define_method("modifiers", modifiers);
119
138
  }
120
139
 
@@ -59,6 +59,22 @@ RUCY_DEF0(redraw)
59
59
  }
60
60
  RUCY_END
61
61
 
62
+ static
63
+ RUCY_DEF1(from_screen, point)
64
+ {
65
+ CHECK;
66
+ return value(THIS->from_screen(to<Rays::Point>(point)));
67
+ }
68
+ RUCY_END
69
+
70
+ static
71
+ RUCY_DEF1(to_screen, point)
72
+ {
73
+ CHECK;
74
+ return value(THIS->to_screen(to<Rays::Point>(point)));
75
+ }
76
+ RUCY_END
77
+
62
78
  static
63
79
  RUCY_DEF1(set_title, title)
64
80
  {
@@ -93,6 +109,23 @@ RUCY_DEF0(get_frame)
93
109
  }
94
110
  RUCY_END
95
111
 
112
+ static
113
+ RUCY_DEF1(set_resizable, state)
114
+ {
115
+ CHECK;
116
+ THIS->set_resizable(to<bool>(state));
117
+ return value(THIS->is_resizable());
118
+ }
119
+ RUCY_END
120
+
121
+ static
122
+ RUCY_DEF0(is_resizable)
123
+ {
124
+ CHECK;
125
+ return value(THIS->is_resizable());
126
+ }
127
+ RUCY_END
128
+
96
129
  static
97
130
  RUCY_DEF0(hidden)
98
131
  {
@@ -241,6 +274,14 @@ RUCY_DEF1(on_pointer_move, event)
241
274
  }
242
275
  RUCY_END
243
276
 
277
+ static
278
+ RUCY_DEF1(on_pointer_cancel, event)
279
+ {
280
+ CHECK;
281
+ CALL(on_pointer_cancel(to<Reflex::PointerEvent*>(event)));
282
+ }
283
+ RUCY_END
284
+
244
285
  static
245
286
  RUCY_DEF1(on_wheel, event)
246
287
  {
@@ -263,10 +304,14 @@ Init_window ()
263
304
  cWindow.define_method("hide", hide);
264
305
  cWindow.define_method("close", close);
265
306
  cWindow.define_method("redraw", redraw);
307
+ cWindow.define_method("from_screen", from_screen);
308
+ cWindow.define_method( "to_screen", to_screen);
266
309
  cWindow.define_method("title=", set_title);
267
310
  cWindow.define_method("title", get_title);
268
311
  cWindow.define_method("frame=", set_frame);
269
312
  cWindow.define_method("frame", get_frame);
313
+ cWindow.define_method("resizable=", set_resizable);
314
+ cWindow.define_method("resizable?", is_resizable);
270
315
  cWindow.define_method("hidden", hidden);
271
316
  cWindow.define_method("root", root);
272
317
  cWindow.define_method("focus", focus);
@@ -282,9 +327,10 @@ Init_window ()
282
327
  cWindow.define_method("on_key_down", on_key_down);
283
328
  cWindow.define_method("on_key_up", on_key_up);
284
329
  cWindow.define_method("on_pointer", on_pointer);
285
- cWindow.define_method("on_pointer_down", on_pointer_down);
286
- cWindow.define_method("on_pointer_up", on_pointer_up);
287
- cWindow.define_method("on_pointer_move", on_pointer_move);
330
+ cWindow.define_method("on_pointer_down", on_pointer_down);
331
+ cWindow.define_method("on_pointer_up", on_pointer_up);
332
+ cWindow.define_method("on_pointer_move", on_pointer_move);
333
+ cWindow.define_method("on_pointer_cancel", on_pointer_cancel);
288
334
  cWindow.define_method("on_wheel", on_wheel);
289
335
  }
290
336
 
@@ -68,98 +68,89 @@ namespace Reflex
68
68
 
69
69
  KEY_NONE = 0,
70
70
 
71
+ KEY_A,
72
+ KEY_B,
73
+ KEY_C,
74
+ KEY_D,
75
+ KEY_E,
76
+ KEY_F,
77
+ KEY_G,
78
+ KEY_H,
79
+ KEY_I,
80
+ KEY_J,
81
+ KEY_K,
82
+ KEY_L,
83
+ KEY_M,
84
+ KEY_N,
85
+ KEY_O,
86
+ KEY_P,
87
+ KEY_Q,
88
+ KEY_R,
89
+ KEY_S,
90
+ KEY_T,
91
+ KEY_U,
92
+ KEY_V,
93
+ KEY_W,
94
+ KEY_X,
95
+ KEY_Y,
96
+ KEY_Z,
97
+
98
+ KEY_0,
99
+ KEY_1,
100
+ KEY_2,
101
+ KEY_3,
102
+ KEY_4,
103
+ KEY_5,
104
+ KEY_6,
105
+ KEY_7,
106
+ KEY_8,
107
+ KEY_9,
108
+
109
+ KEY_MINUS,
110
+ KEY_EQUAL,
111
+ KEY_COMMA,
112
+ KEY_PERIOD,
113
+ KEY_SEMICOLON,
114
+ KEY_QUOTE,
115
+ KEY_SLASH,
116
+ KEY_BACKSLASH,
117
+ KEY_UNDERSCORE,
118
+ KEY_GRAVE,
119
+ KEY_YEN,
120
+ KEY_LBRACKET,
121
+ KEY_RBRACKET,
122
+
123
+ KEY_ENTER,
71
124
  KEY_RETURN,
72
- KEY_ENTER = KEY_RETURN,
73
- KEY_ESCAPE,
74
125
  KEY_SPACE,
75
- KEY_BACKSPACE,
76
126
  KEY_TAB,
127
+ KEY_DELETE,
128
+ KEY_BACKSPACE,
129
+ //KEY_INSERT,
130
+ KEY_ESCAPE,
77
131
 
78
132
  KEY_LEFT,
79
- KEY_UP,
80
133
  KEY_RIGHT,
134
+ KEY_UP,
81
135
  KEY_DOWN,
82
-
83
- KEY_INSERT,
84
- KEY_DELETE,
85
136
  KEY_HOME,
86
137
  KEY_END,
87
138
  KEY_PAGEUP,
88
139
  KEY_PAGEDOWN,
89
140
 
90
- KEY_SHIFT,
91
141
  KEY_LSHIFT,
92
142
  KEY_RSHIFT,
93
-
94
- KEY_CONTROL,
95
143
  KEY_LCONTROL,
96
144
  KEY_RCONTROL,
97
-
98
- KEY_ALT,
99
- KEY_LALT,
100
- KEY_RALT,
101
-
102
- KEY_WIN,
103
- KEY_LWIN,
104
- KEY_RWIN,
105
-
106
- KEY_OPTION = KEY_ALT,
107
- KEY_LOPTION = KEY_LALT,
108
- KEY_ROPTION = KEY_RALT,
109
-
110
- KEY_COMMAND = KEY_WIN,
111
- KEY_LCOMMAND = KEY_LWIN,
112
- KEY_RCOMMAND = KEY_RWIN,
113
-
114
- KEY_CAPSLOCK,
115
- KEY_NUMLOCK,
116
- KEY_SCROLLLOCK,
117
-
118
- KEY_PRINTSCREEN,
119
- KEY_PAUSE,
120
- KEY_BREAK,
121
-
122
- KEY_SLEEP,
123
- KEY_EXEC,//UTE,
124
- KEY_HELP,
125
- KEY_PRINT,
126
- KEY_APPS,
127
- KEY_SELECT,
128
- KEY_CLEAR,
129
- KEY_PLAY,
130
- KEY_ZOOM,
131
-
132
- KEY_IME_KANA,
133
- KEY_IME_KANJI,
134
- KEY_IME_JUNJA,
135
- KEY_IME_PROCESS,
136
- KEY_IME_ACCEPT,
137
- KEY_IME_FINAL,
138
- KEY_IME_CONVERT,
139
- KEY_IME_NONCONVERT,
140
- KEY_IME_MODECHANGE,
141
-
142
- KEY_BROWSER_BACK,
143
- KEY_BROWSER_FORWARD,
144
- KEY_BROWSER_REFRESH,
145
- KEY_BROWSER_STOP,
146
- KEY_BROWSER_SEARCH,
147
- KEY_BROWSER_FAVORITES,
148
- KEY_BROWSER_HOME,
149
-
150
- KEY_VOLUME_MUTE,
151
- KEY_VOLUME_DOWN,
152
- KEY_VOLUME_UP,
153
-
154
- KEY_MEDIA_NEXT_TRACK,
155
- KEY_MEDIA_PREV_TRACK,
156
- KEY_MEDIA_STOP,
157
- KEY_MEDIA_PLAY_PAUSE,
158
-
159
- KEY_LAUNCH_MAIL,
160
- KEY_LAUNCH_MEDIA_SELECT,
161
- KEY_LAUNCH_APP1,
162
- KEY_LAUNCH_APP2,
145
+ //KEY_LALT,
146
+ //KEY_RALT,
147
+ //KEY_LWIN,
148
+ //KEY_RWIN,
149
+ KEY_LCOMMAND,
150
+ KEY_RCOMMAND,
151
+ KEY_LOPTION,
152
+ KEY_ROPTION,
153
+ KEY_FUNCTION,
163
154
 
164
155
  KEY_F1,
165
156
  KEY_F2,
@@ -181,41 +172,84 @@ namespace Reflex
181
172
  KEY_F18,
182
173
  KEY_F19,
183
174
  KEY_F20,
184
- KEY_F21,
185
- KEY_F22,
186
- KEY_F23,
187
- KEY_F24,
188
- KEY_F25,
189
- KEY_F26,
190
- KEY_F27,
191
- KEY_F28,
192
- KEY_F29,
193
- KEY_F30,
194
- KEY_F31,
195
- KEY_F32,
196
- KEY_F33,
197
- KEY_F34,
198
- KEY_F35,
199
-
200
- };// KeyCode
175
+ //KEY_F21,
176
+ //KEY_F22,
177
+ //KEY_F23,
178
+ //KEY_F24,
179
+
180
+ KEY_NUM_0,
181
+ KEY_NUM_1,
182
+ KEY_NUM_2,
183
+ KEY_NUM_3,
184
+ KEY_NUM_4,
185
+ KEY_NUM_5,
186
+ KEY_NUM_6,
187
+ KEY_NUM_7,
188
+ KEY_NUM_8,
189
+ KEY_NUM_9,
190
+
191
+ KEY_NUM_PLUS,
192
+ KEY_NUM_MINUS,
193
+ KEY_NUM_MULTIPLY,
194
+ KEY_NUM_DIVIDE,
195
+ KEY_NUM_EQUAL,
196
+ KEY_NUM_COMMA,
197
+ KEY_NUM_DECIMAL,
198
+ KEY_NUM_CLEAR,
201
199
 
200
+ KEY_CAPSLOCK,
201
+ //KEY_NUMLOCK,
202
+ //KEY_SCROLLLOCK,
202
203
 
203
- enum PointerType
204
- {
205
-
206
- POINTER_NONE = 0,
207
-
208
- POINTER_MOUSE_LEFT = 0x1 << 0,
209
-
210
- POINTER_MOUSE_RIGHT = 0x1 << 1,
211
-
212
- POINTER_MOUSE_MIDDLE = 0x1 << 2,
204
+ //KEY_PRINTSCREEN,
205
+ //KEY_PAUSE,
206
+ //KEY_BREAK,
207
+ KEY_SECTION,
208
+ KEY_HELP,
213
209
 
214
- POINTER_TOUCH = 0x1 << 3,
210
+ KEY_IME_EISU,
211
+ KEY_IME_KANA,
212
+ //KEY_IME_KANJI,
213
+ //KEY_IME_JUNJA,
214
+ //KEY_IME_PROCESS,
215
+ //KEY_IME_ACCEPT,
216
+ //KEY_IME_FINAL,
217
+ //KEY_IME_CONVERT,
218
+ //KEY_IME_NONCONVERT,
219
+ //KEY_IME_MODECHANGE,
215
220
 
216
- POINTER_PEN = 0x1 << 4,
221
+ KEY_VOLUME_UP,
222
+ KEY_VOLUME_DOWN,
223
+ KEY_MUTE,
224
+
225
+ //KEY_SLEEP,
226
+ //KEY_EXEC,
227
+ //KEY_PRINT,
228
+ //KEY_APPS,
229
+ //KEY_SELECT,
230
+ //KEY_CLEAR,
231
+ //KEY_PLAY,
232
+ //KEY_ZOOM,
233
+
234
+ //KEY_BROWSER_BACK,
235
+ //KEY_BROWSER_FORWARD,
236
+ //KEY_BROWSER_REFRESH,
237
+ //KEY_BROWSER_STOP,
238
+ //KEY_BROWSER_SEARCH,
239
+ //KEY_BROWSER_FAVORITES,
240
+ //KEY_BROWSER_HOME,
241
+
242
+ //KEY_MEDIA_NEXT_TRACK,
243
+ //KEY_MEDIA_PREV_TRACK,
244
+ //KEY_MEDIA_STOP,
245
+ //KEY_MEDIA_PLAY_PAUSE,
246
+
247
+ //KEY_LAUNCH_MAIL,
248
+ //KEY_LAUNCH_MEDIA_SELECT,
249
+ //KEY_LAUNCH_APP1,
250
+ //KEY_LAUNCH_APP2,
217
251
 
218
- };// PointType
252
+ };// KeyCode
219
253
 
220
254
 
221
255
  enum Modifier