134 files changed, 31073 insertions, 30287 deletions
diff --git a/tvapi/libtv/tvutils/CTvInput.h b/tvapi/libtv/tvutils/CTvInput.h index c5f79ab..92c981c 100644 --- a/tvapi/libtv/tvutils/CTvInput.h +++ b/tvapi/libtv/tvutils/CTvInput.h @@ -12,31 +12,31 @@ static const char *KEY_EVENT_1 = "/dev/input/event1"; static const char *KEY_EVENT_2 = "/dev/input/event2"; class CTvInput: public CThread { public: - CTvInput(); - ~CTvInput(); - void sendkeyEvent(const int &type, const int &code, const int &value); - void sendIRkeyEvent(const int &type, const int &code, const int &value); - void sendkeyCode(const int &code); - void sendkeyCode_Up(const int &code); - void sendkeyCode_Down(const int &code); - void sendIRkeyCode(const int &code); - void sendIRkeyCode_Up(const int &code); - void sendIRkeyCode_Down(const int &code); - void sendKeyRepeatStart(const int &code, int disTime, int repeatDisTime);//ms - void sendKeyRepeatStop(); - nsecs_t getNowMs(); + CTvInput(); + ~CTvInput(); + void sendkeyEvent(const int &type, const int &code, const int &value); + void sendIRkeyEvent(const int &type, const int &code, const int &value); + void sendkeyCode(const int &code); + void sendkeyCode_Up(const int &code); + void sendkeyCode_Down(const int &code); + void sendIRkeyCode(const int &code); + void sendIRkeyCode_Up(const int &code); + void sendIRkeyCode_Down(const int &code); + void sendKeyRepeatStart(const int &code, int disTime, int repeatDisTime);//ms + void sendKeyRepeatStop(); + nsecs_t getNowMs(); private: - bool threadLoop(); + bool threadLoop(); - int mKeyEventFd; - int mKeyEventFd_IR; - CCondition mSendKeyCondition; - CMutex mLock; - int mRepeatKeyCode; - int mRepeatKeydisTime; - int mRepeatKeyRepeateDisTime; - int mTimeoutCount; - nsecs_t mWhenTimeRepeatKeyStartToSend; + int mKeyEventFd; + int mKeyEventFd_IR; + CCondition mSendKeyCondition; + CMutex mLock; + int mRepeatKeyCode; + int mRepeatKeydisTime; + int mRepeatKeyRepeateDisTime; + int mTimeoutCount; + nsecs_t mWhenTimeRepeatKeyStartToSend; }; #endif |