void InputDeviceVRPNButton::sendEvent(int buttonNumber, bool down, const TimeStamp &msg_time) { std::string ename = getEventName(buttonNumber); if (down) { _pendingEvents.push_back(EventRef(new Event(ename + "_down", nullptr, buttonNumber, msg_time))); } else { _pendingEvents.push_back(EventRef(new Event(ename + "_up", nullptr, buttonNumber, msg_time))); } }
uint64_t Scheduler::AddEvent(float dur,ScheduleFunction F,uint32_t rep){ m_eventId++; m_events[m_eventId] = EventRef(dur,F,rep+1); return m_eventId; }