Rev 2097 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1528 | jag | 1 | /* |
2 | * mocap.h |
||
2302 | jag | 3 | * DIN Is Noise is copyright (c) 2006-2025 Jagannathan Sampath |
1713 | jag | 4 | * DIN Is Noise is released under GNU Public License 2.0 |
1528 | jag | 5 | * For more information, please visit https://dinisnoise.org/ |
6 | */ |
||
7 | |||
8 | |||
9 | #ifndef __mocap |
||
10 | #define __mocap |
||
11 | |||
12 | #include <vector> |
||
13 | |||
14 | struct basic_editor; |
||
15 | |||
16 | struct mocap { // mouse capture |
||
17 | |||
18 | std::vector<float> x, y; |
||
19 | unsigned int cur; |
||
20 | |||
21 | int state; |
||
22 | enum {empty, capturing, finished}; |
||
23 | |||
24 | mocap (); |
||
25 | int get (float& x, float& y, int dir = 1); |
||
26 | int add (float wx, float wy); |
||
27 | void finish (basic_editor* b); |
||
28 | void clear (); |
||
29 | int operator() (); // mocap exists? |
||
30 | |||
31 | }; |
||
32 | |||
33 | #endif |
||
34 | |||
35 | |||
36 |