-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmy_knobs.h
More file actions
38 lines (35 loc) · 861 Bytes
/
Copy pathmy_knobs.h
File metadata and controls
38 lines (35 loc) · 861 Bytes
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
#pragma once
#include <mutex>
#include <sys/mman.h>
#include <cstdlib>
#include <cstdio>
#include <cstdint>
#include <unistd.h>
#include <cstring>
#include <cinttypes>
#include <ctime>
#include "mzapo_phys.h"
/**
* work for knobhandle thread. listen to knob changes and return values to pointers
*
* @param positionX
* @param positionY
* @param constantImaginary
* @param red_click
* @param green_click
* @param blue_click
* @param mutex
* @param finished
*/
void handle_knobs(long double *positionX,
long double *positionY,
long double *constantImaginary,
int *red_click,
int *green_click,
int *blue_click,
std::mutex *mutex,
bool *finished);
/**
* save initial possition of knob spinners
*/
void get_init_position();