work out kinks of touch
This commit is contained in:
parent
b5099d1b83
commit
909cbe05b2
@ -230,9 +230,9 @@ void start_kinect() {
|
|||||||
|
|
||||||
// update event details
|
// update event details
|
||||||
foot.event.id = foot.id;
|
foot.event.id = foot.id;
|
||||||
foot.event.x = 0;
|
foot.event.x = 1;
|
||||||
foot.event.y = 0;
|
foot.event.y = 1;
|
||||||
foot.event.width = 100;
|
foot.event.width = -1.79769E+308;
|
||||||
foot.event.height = foot.event.width;
|
foot.event.height = foot.event.width;
|
||||||
foot.event.type = DRS_DOWN;
|
foot.event.type = DRS_DOWN;
|
||||||
|
|
||||||
|
@ -8,10 +8,10 @@ enum DRS_TOUCH_TYPE {
|
|||||||
typedef struct drs_touch_t {
|
typedef struct drs_touch_t {
|
||||||
int type = DRS_UP;
|
int type = DRS_UP;
|
||||||
int id = 0;
|
int id = 0;
|
||||||
double x = 0.0;
|
double x = 0.0; //x = pixelX/1920
|
||||||
double y = 0.0;
|
double y = 0.0; //y = pixelY/1920
|
||||||
double width = 1;
|
double width = 1; //width = pixelWidth/1920
|
||||||
double height = 1;
|
double height = 1; //height = pixelHeight/1920
|
||||||
};
|
};
|
||||||
|
|
||||||
struct VRFoot {
|
struct VRFoot {
|
||||||
|
Loading…
Reference in New Issue
Block a user