gil_drag&drop_map.pd 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #N canvas 382 22 512 706 10;
  2. #X obj 180 343 &&;
  3. #X obj 91 420 spigot;
  4. #X obj 135 420 spigot;
  5. #X obj 64 168 t l l;
  6. #X obj 91 193 unpack f f f;
  7. #X obj 227 621 outlet x;
  8. #X obj 294 621 outlet y;
  9. #X obj 64 621 outlet cursor-list;
  10. #X text 147 687 (c)2011 Marian Weger /part of GIL/;
  11. #X obj 64 147 inlet cursor-list;
  12. #X obj 195 147 inlet mouseover;
  13. #X obj 180 213 change;
  14. #X obj 309 289 sel 1;
  15. #X obj 91 265 t f f;
  16. #X obj 135 265 t f f;
  17. #X obj 242 343 f;
  18. #X obj 309 343 f;
  19. #X text 210 646 difference to mouse position on click;
  20. #X obj 227 568 - 0;
  21. #X obj 294 568 - 0;
  22. #X text 66 25 gil_drag&drop_map;
  23. #X text 66 45 [gil_drag&drop_map] takes the outlets of a [gil_mouseover_...]
  24. function and maps drag&drop functionality to another domain \, leaving
  25. the hoverpoint \, created by [gil_mouseover_...] \, untouched. While
  26. dragging \, the right outlet gives the difference between cursor and
  27. mouseover point in gem units.;
  28. #X obj 260 185 cnv 15 220 50 empty empty HELP? 20 12 0 14 -261234 -258113
  29. 0;
  30. #X text 261 212 for further help: see [gil_example];
  31. #X connect 0 0 1 1;
  32. #X connect 0 0 2 1;
  33. #X connect 1 0 18 0;
  34. #X connect 2 0 19 0;
  35. #X connect 3 0 7 0;
  36. #X connect 3 1 4 0;
  37. #X connect 4 0 13 0;
  38. #X connect 4 1 14 0;
  39. #X connect 4 2 11 0;
  40. #X connect 9 0 3 0;
  41. #X connect 10 0 0 1;
  42. #X connect 11 0 0 0;
  43. #X connect 11 0 12 0;
  44. #X connect 12 0 15 0;
  45. #X connect 12 0 16 0;
  46. #X connect 13 0 1 0;
  47. #X connect 13 1 15 1;
  48. #X connect 14 0 2 0;
  49. #X connect 14 1 16 1;
  50. #X connect 15 0 18 1;
  51. #X connect 16 0 19 1;
  52. #X connect 18 0 5 0;
  53. #X connect 19 0 6 0;