aboutsummaryrefslogtreecommitdiff
path: root/abstractions/pdp_xv_keycursor.pd
blob: a10a708ecf0579f91f9cfaa0017a6730ccefefc1 (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
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#N canvas 135 108 708 682 10;
#X obj 19 103 print;
#X obj 19 67 pdp_xv;
#X obj 111 168 route keypress;
#X obj 367 215 table \$0-x;
#X obj 87 394 tabwrite \$0-x;
#X obj 396 335 tabread \$0-x;
#X obj 486 335 tabread \$0-y;
#X obj 409 383 pack s 0 0;
#X obj 183 392 tabwrite \$0-y;
#X obj 77 260 route motion;
#X obj 88 367 unpack 0 0;
#X obj 444 215 table \$0-y;
#X obj 87 339 spigot;
#X msg 157 311 0;
#X msg 125 312 1;
#X obj 157 288 route keyrelease;
#X msg 385 360 movecursor;
#X msg 409 412 \$1 \$2 \$3;
#X obj 18 468 outlet;
#X obj 17 128 t a a;
#X obj 403 277 t b f f;
#X obj 88 426 outlet;
#X obj 152 423 outlet;
#X obj 267 428 outlet;
#X obj 239 231 t f f;
#X obj 409 438 s \$0-control;
#X obj 19 40 r \$0-control;
#X obj 20 16 inlet;
#X text 182 53 a keyboard/mouse controller using pdp_xv;
#X text 180 76 hold a key while moving the mouse to update the x/y
controller value. hint: turn off keyboard autoropeat using "xset r
off" in a terminal window.;
#X text 252 454 scan code;
#X text 82 450 x coord;
#X text 151 449 y coord;
#X text 9 494 plain events;
#X obj 450 119 inlet;
#X obj 450 143 unpack 0 0 0;
#X obj 382 175 tabwrite \$0-x;
#X obj 480 175 tabwrite \$0-y;
#X connect 1 0 0 0;
#X connect 1 0 19 0;
#X connect 2 0 24 0;
#X connect 2 1 9 0;
#X connect 5 0 7 1;
#X connect 6 0 7 2;
#X connect 7 0 17 0;
#X connect 9 0 12 0;
#X connect 9 1 15 0;
#X connect 10 0 4 0;
#X connect 10 0 21 0;
#X connect 10 1 8 0;
#X connect 10 1 22 0;
#X connect 12 0 10 0;
#X connect 13 0 12 1;
#X connect 14 0 12 1;
#X connect 15 0 13 0;
#X connect 16 0 7 0;
#X connect 17 0 25 0;
#X connect 19 0 18 0;
#X connect 19 1 2 0;
#X connect 20 0 16 0;
#X connect 20 1 5 0;
#X connect 20 2 6 0;
#X connect 24 0 4 1;
#X connect 24 0 8 1;
#X connect 24 0 23 0;
#X connect 24 0 14 0;
#X connect 24 1 20 0;
#X connect 26 0 1 0;
#X connect 27 0 1 0;
#X connect 34 0 35 0;
#X connect 35 0 36 0;
#X connect 35 1 37 0;
#X connect 35 2 37 1;
#X connect 35 2 36 1;