aboutsummaryrefslogtreecommitdiff
path: root/pd/doc/5.reference/key.pd
blob: ceab4440df88ebfe1073141ac6d7d52f448c78f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#N canvas 243 41 464 286 12;
#X obj 21 10 key;
#X obj 48 10 keyup;
#X obj 89 9 keyname;
#X text 157 8 -- grab keyboard;
#X obj 38 67 key;
#X floatatom 38 95 3 0 0;
#X floatatom 75 95 3 0 0;
#X obj 75 69 keyup;
#X floatatom 122 97 3 0 0;
#X obj 122 71 keyname;
#X symbolatom 166 98 10 0 0;
#X text 254 256 updated for Pd version 0.32.;
#X text 32 143 Key and keyup report the (system dependent) numbers of "printing" keys of the keyboard. Keyname gives the symbolic name of the key \, with a 1 or 0 if it's up or down \, and works with non-printing keys like shift or "F1".;
#X text 33 203 Caveat -- this only works if Pd actually gets the key events which can depend on the stacking order of windows and/or the pointer location \, depending on the system.;
#X connect 4 0 5 0;
#X connect 7 0 6 0;
#X connect 9 0 8 0;
#X connect 9 1 10 0;