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