#N canvas 179 61 929 414 10;
#X declare -lib Gem;
#X obj 7 65 cnv 15 450 170 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X obj 8 283 cnv 15 450 120 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 9 288 Inlets:;
#X obj 8 245 cnv 15 450 30 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X text 17 244 Arguments:;
#X text 712 8 GEM object;
#X text 9 317 Outlets:;
#X text 475 29 Example:;
#X text 54 30 Class: control object;
#X obj 466 64 cnv 15 170 180 empty empty empty 20 12 0 14 #dce4fc #404040 0;
#X text 27 300 Inlet 1: non - used;
#X text 468 364 see also:;
#X text 33 14 Synopsis: [gemmouse];
#X text 7 69 Description: mouse events in the GEM window;
#X text 16 86 [gemmouse] sends out mouse events which occur in the GEM window. The X and Y Position go from 0 to the size of the window in pixels. The point (0 \, 0) is in the top left of the window.;
#X text 15 141 You can also set some normalization of the output coordinates with arguments.;
#X text 15 170 The button outlets send a 1 when the specified button is pressed and a 0 when it is released.;
#X text 21 330 Outlet 1: x position;
#X text 21 343 Outlet 2: y position;
#X text 21 355 Outlet 3: left button state;
#X text 21 368 Outlet 4: middle button state;
#X text 21 381 Outlet 5: right button state;
#X obj 466 385 gemkeyboard;
#X obj 478 82 cnv 15 100 40 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X obj 491 93 gemmouse;
#A saved init;
#X floatatom 491 218 9 0 0 1 X-position - - 0;
#X floatatom 502 196 8 0 0 1 Y-position - - 0;
#X floatatom 513 174 2 0 0 1 left-Button - - 0;
#X floatatom 524 153 2 0 0 1 middle-Button - - 0;
#X floatatom 536 129 2 0 0 1 right-Button - - 0;
#X obj 642 64 cnv 15 280 180 empty empty empty 20 12 0 14 #dce4fc #404040 0;
#X obj 654 82 cnv 15 100 40 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X floatatom 657 135 9 0 0 1 X-position - - 0;
#X floatatom 674 113 8 0 0 1 Y-position - - 0;
#X text 792 134 (normalized to 0..1);
#X obj 657 89 gemmouse 1 1;
#A saved init;
#X text 791 111 (normalized to 0..1);
#X obj 656 186 tgl 15 1 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000 1 1;
#N canvas 589 352 498 353 follow_mouse 0;
#X obj 112 29 inlet;
#X obj 168 74 * 8;
#X obj 168 97 - 4;
#X obj 168 31 inlet;
#X obj 112 129 gemhead;
#X obj 112 189 translateXYZ;
#X obj 112 217 colorRGB 1 0 0;
#X obj 112 242 square 0.25;
#X obj 214 139 - 4;
#X obj 214 33 inlet;
#X text 253 76 invert y;
#X obj 214 116 * 8;
#X msg 214 57 1 \$1;
#X obj 214 81 -;
#X connect 0 0 4 0;
#X connect 1 0 2 0;
#X connect 2 0 5 1;
#X connect 3 0 1 0;
#X connect 4 0 5 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 8 0 5 2;
#X connect 9 0 12 0;
#X connect 11 0 8 0;
#X connect 12 0 13 0;
#X connect 13 0 11 0;
#X restore 656 209 pd follow_mouse;
#N canvas 484 243 450 300 META 0;
#X obj 10 25 declare -lib Gem;
#X text 10 45 DESCRIPTION mouse events in the GEM window;
#X text 10 65 KEYWORDS Gem control;
#X text 20 85 INLET_0 non;
#X text 20 105 OUTLET_0 x;
#X text 20 125 OUTLET_1 y;
#X text 20 145 OUTLET_2 left;
#X text 20 165 OUTLET_3 middle;
#X text 20 185 OUTLET_4 right;
#X text 10 205 AUTHOR IOhannes m zmölnig;
#X text 10 225 LICENSE GPL v2;
#X restore 788 8 pd META;
#X obj 464 299 _gemwin;
#X text 24 258 [context_name] [x-normalization [y-normalization]];
#X connect 24 0 25 0;
#X connect 24 1 26 0;
#X connect 24 2 27 0;
#X connect 24 3 28 0;
#X connect 24 4 29 0;
#X connect 32 0 38 1;
#X connect 33 0 38 2;
#X connect 35 0 32 0;
#X connect 35 1 33 0;
#X connect 37 0 38 0;
