Revision 40dc3e35 src/server/eyelid_motion_generator.cpp
src/server/eyelid_motion_generator.cpp | ||
---|---|---|
49 | 49 |
saccade_blink_requested = false; |
50 | 50 |
eyelid_closed[LEFT] = false; |
51 | 51 |
eyelid_closed[RIGHT] = false; |
52 |
|
|
53 |
eyeblink_blocked_timeout = get_system_time(); |
|
52 | 54 |
} |
53 | 55 |
|
54 | 56 |
//! destructor |
... | ... | |
236 | 238 |
//! this will actually set a flag and a timeout for reopening the given eyelid pair again |
237 | 239 |
//! \param int id of side (LEFT or RIGHT) |
238 | 240 |
void EyelidMotionGenerator::start_eyeblink(int side, int duration){ |
241 |
//cout << "BLOCKED UNTIL " << eyeblink_blocked_timeout << "\n"; |
|
239 | 242 |
if (get_system_time() < eyeblink_blocked_timeout){ |
240 | 243 |
//return if we are still in the block time |
241 | 244 |
return; |
Also available in: Unified diff