#N canvas 64 61 679 445 10; #X declare -lib Gem; #X obj 27 85 cnv 15 450 200 empty empty empty 20 12 0 14 -233017 -66577 0; #X obj 27 325 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577 0; #X text 35 332 Inlets:; #X obj 27 290 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577 0; #X text 36 291 Arguments:; #X text 472 28 GEM object; #X text 35 361 Outlets:; #X text 495 69 Example:; #X text 74 50 Class: control object; #X obj 486 84 cnv 15 170 180 empty empty empty 20 12 0 14 -228992 -66577 0; #X obj 495 101 cnv 15 150 80 empty empty empty 20 12 0 14 -24198 -66577 0; #X obj 546 194 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 0; #N canvas 0 22 450 300 gemwin 0; #X obj 132 136 gemwin; #X obj 67 89 outlet; #X obj 67 10 inlet; #X obj 67 41 route create; #X msg 67 70 set destroy; #X msg 142 68 set create; #X msg 198 112 destroy; #X msg 132 112 create \, 1; #X connect 2 0 3 0; #X connect 3 0 4 0; #X connect 3 0 7 0; #X connect 3 1 5 0; #X connect 3 1 6 0; #X connect 4 0 1 0; #X connect 5 0 1 0; #X connect 6 0 0 0; #X connect 7 0 0 0; #X restore 551 233 pd gemwin; #X msg 551 214 create; #X text 547 193 Create window:; #X text 38 89 Description: output keyboard events in the GEM window ; #X text 37 265 USE AT YOUR OWN RISK !!!; #X text 82 302 none; #X text 53 344 Inlet 1: non - used; #X text 488 274 see also:; #X text 53 34 Synopsis: [gemkeyname]; #X text 36 108 [gemkeyname] sends out keyboard events which occur in the GEM window. Such event will give a symbolic description of the button. The "state"-outlet will be 1 for KEY_DOWN and 0 for KEY_UP. ; #X text 37 219 Furthermore \, i would like to make this object really cross-platform one day. Thus the KeyName might change on one system or another in future times.; #X text 37 161 It is not guaranteed \, that Windows / Linux / OSX versions will give the same description for the same key pressed !!! Also \, there is no guarantee \, that the Pd-object [keyname] will return the same symbols as [gemkeyname]; #X text 53 376 Outlet 1: state; #X text 53 390 Outlet 2: keyName; #X obj 489 299 gemkeyboard; #X floatatom 508 160 2 0 0 1 state - -; #X symbolatom 565 134 10 0 0 0 keyName - -; #X obj 508 115 gemkeyname; #X obj 558 28 declare -lib Gem; #X connect 12 0 13 0; #X connect 13 0 12 0; #X connect 29 0 27 0; #X connect 29 1 28 0;