147 files changed, 55964 insertions, 55946 deletions
diff --git a/tvapi/libtv/tvutils/CTvInput.h b/tvapi/libtv/tvutils/CTvInput.h index 952befb..bb2bce1 100644 --- a/tvapi/libtv/tvutils/CTvInput.h +++ b/tvapi/libtv/tvutils/CTvInput.h @@ -6,34 +6,33 @@ static const char *KEY_EVENT_0 = "/dev/input/event0"; static const char *KEY_EVENT_1 = "/dev/input/event1"; static const char *KEY_EVENT_2 = "/dev/input/event2"; -class CTvInput: public CThread -{ +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 |