aboutsummaryrefslogtreecommitdiff
path: root/externals/vanilla/key-help.pd
blob: 1ab0337c40b713294f8c67c385aee964118be6b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#N canvas 146 45 546 288 12;
#X obj 21 10 key;
#X obj 54 9 keyup;
#X obj 105 9 keyname;
#X text 173 8 -- grab keyboard;
#X obj 38 67 key;
#X floatatom 38 95 3 0 0 0 - - -;
#X floatatom 77 93 3 0 0 0 - - -;
#X obj 77 67 keyup;
#X floatatom 128 93 3 0 0 0 - - -;
#X obj 128 67 keyname;
#X symbolatom 172 94 10 0 0 0 - - -;
#X text 280 262 updated for Pd version 0.32.;
#X text 26 133 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 18 200 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;