add ghosting simulator POC
This commit is contained in:
parent
909cbe05b2
commit
dbe551c9b8
@ -228,17 +228,19 @@ void start_kinect() {
|
|||||||
foot.id = 0;
|
foot.id = 0;
|
||||||
foot.index = 0;
|
foot.index = 0;
|
||||||
|
|
||||||
// update event details
|
// update event details ghosting simulator
|
||||||
foot.event.id = foot.id;
|
foot.event.id = foot.id;
|
||||||
foot.event.x = 1;
|
foot.event.x = (rand() / (double)RAND_MAX) * (1 - 0) + 0;
|
||||||
foot.event.y = 1;
|
foot.event.y = (rand() / (double)RAND_MAX) * (1 - 0) + 0;
|
||||||
foot.event.width = -1.79769E+308;
|
foot.event.width = (rand() / (double)RAND_MAX) * (0.1 - 0) + 0;
|
||||||
foot.event.height = foot.event.width;
|
foot.event.height = foot.event.width;
|
||||||
|
|
||||||
|
|
||||||
foot.event.type = DRS_DOWN;
|
foot.event.type = DRS_DOWN;
|
||||||
|
|
||||||
fire_touches(&foot.event, 1);
|
fire_touches(&foot.event, 1);
|
||||||
puts("touch fired!!!");
|
foot.event.type = DRS_UP;
|
||||||
|
fire_touches(&foot.event, 1);
|
||||||
|
|
||||||
// slow down
|
// slow down
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user