File: key-input-help.pd

package info (click to toggle)
puredata 0.55.2%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 20,508 kB
  • sloc: ansic: 118,824; tcl: 10,221; cpp: 9,327; makefile: 1,632; sh: 1,476; python: 152; xml: 98; awk: 13
file content (49 lines) | stat: -rw-r--r-- 2,799 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#N canvas 466 62 523 386 12;
#X obj 22 15 key;
#X obj 51 15 keyup;
#X obj 94 15 keyname;
#X obj 125 66 key;
#X floatatom 125 95 4 0 0 0 - - - 0;
#X obj 275 66 keyname;
#X symbolatom 321 95 10 0 0 0 - - - 0;
#X text 289 356 updated for Pd version 0.32.;
#X obj 194 66 keyup;
#X floatatom 194 95 4 0 0 0 - - - 0;
#X floatatom 275 95 4 0 0 0 - - - 0;
#X text 158 14 - grab keyboard input;
#X obj 8 50 cnv 1 510 1 empty empty empty 8 12 0 13 #000000 #000000 0;
#N canvas 753 101 572 456 reference 0;
#X obj 9 105 cnv 5 550 5 empty empty INLETS: 8 18 0 13 #202020 #000000 0;
#X obj 9 143 cnv 2 550 2 empty empty OUTLET: 8 12 0 13 #202020 #000000 0;
#X obj 9 180 cnv 2 550 2 empty empty ARGUMENTS: 8 12 0 13 #202020 #000000 0;
#X obj 8 214 cnv 5 550 5 empty empty empty 8 18 0 13 #202020 #000000 0;
#X obj 22 38 key;
#X obj 22 64 keyup;
#X obj 17 256 keyname;
#X text 140 117 NONE, f 5;
#X text 140 189 NONE, f 5;
#X text 109 153 float - key number when pressed (key) and released (keyup);
#X obj 9 285 cnv 5 550 5 empty empty INLETS: 8 18 0 13 #202020 #000000 0;
#X obj 9 323 cnv 2 550 2 empty empty OUTLET: 8 12 0 13 #202020 #000000 0;
#X obj 9 404 cnv 2 550 2 empty empty ARGUMENTS: 8 12 0 13 #202020 #000000 0;
#X obj 8 435 cnv 5 550 5 empty empty empty 8 18 0 13 #202020 #000000 0;
#X text 140 297 NONE, f 5;
#X text 140 412 NONE, f 5;
#X obj 10 373 cnv 1 550 1 empty empty 2nd: 8 12 0 13 #7c7c7c #000000 0;
#X obj 10 346 cnv 1 550 1 empty empty 1st: 8 12 0 13 #7c7c7c #000000 0;
#X text 119 381 symbol - key name.;
#X text 126 351 float - <1> when key is pressed and <0> when released.;
#X text 26 7 Grab keyboard input:;
#X text 92 37 - key ASCII number when pressed;
#X text 92 63 - key ASCII number when released;
#X text 93 255 - key symbol name and press/release information;
#X restore 338 15 pd reference;
#X text 436 16 <= click;
#X obj 8 346 cnv 1 510 1 empty empty empty 8 12 0 13 #000000 #000000 0;
#X text 35 211 [keyname] gives the symbolic name of the key on the right outlet \, with a 1 or 0 in the left outlet if it's up or down \, and works with non-printing keys like "shift" or "F1"., f 65;
#X text 35 134 [key] and [keyup] report the (system dependent) numbers of "printing" keys of the keyboard. The [key] object outputs when the keyboard key is pressed while [keyup] outputs it when you release the key. Check your system's preferences for 'autorepeat' as it affects the output of these objects., f 65;
#X text 35 261 Caveat -- this only works if Pd actually gets the key events which can depend on the stacking order of windows and/or the mouse pointer location \, depending on the system. Also note that typical computer keyboards will only allow you to press a few keys simultaneously., f 65;
#X connect 3 0 4 0;
#X connect 5 0 10 0;
#X connect 5 1 6 0;
#X connect 8 0 9 0;