#N canvas 0 18 381 325 10; #X msg 36 86 click \$1 \$2 \$3 \$4; #X obj 111 182 key; #X floatatom 111 208 0 0 0 0 - - -; #X floatatom 50 184 0 0 0 0 - - -; #X msg 50 158 0; #X msg 6 6 bang; #X text 56 41 left; #X text 124 41 rigth; #X text 70 4 Msg-dealing with events :; #X text 89 28 click; #X text 218 37 \$1 x; #X text 218 52 \$2 y; #X obj 36 290 s pd-3.0.events.pd; #X msg 36 129 mouseup \$1 \$2 \$4; #X msg 113 60 15 15 0 8; #X msg 36 60 15 15 0 1; #X msg 36 257 motion \$1 \$2 \$4; #X msg 36 209 key 1 \$1 0; #X text 274 84 0:nomod \; 1 shift \; 2 crtl \; 3 alt \; 4 right click) ; #X text 218 82 \$4 mod :; #X text 218 67 \$3 (unused ???); #X text 73 230 \$1 : number of the key; #N canvas 218 113 494 396 META 0; #X text 12 5 GENRE tutorial; #X text 12 95 HELP_PATCH_AUTHORS Damien Henry. "pd meta" information added by Jonathan Wilkes for Pd version 0.42.; #X text 12 65 DESCRIPTION simulating mouse and key events with messages to a canvas; #X text 12 25 KEYWORDS control canvas_op nonlocal dynamic_patching ; #X text 12 44 LICENSE public domain; #X restore 325 297 pd META; #X connect 0 0 12 0; #X connect 1 0 2 0; #X connect 3 0 17 0; #X connect 4 0 3 0; #X connect 13 0 12 0; #X connect 14 0 0 0; #X connect 15 0 0 0; #X connect 16 0 12 0; #X connect 17 0 12 0;