資源簡介
linux按鍵測試例子,/dev/input下event設備,獲取按鍵狀態并打印出來。
代碼片段和文件信息
/*?*
?*?*******************************************************************************
?*?*???Filename????:???key.c
?*?*???Version?????:???1.1.3v?
?*?*???Created?????:???2019-09-02?10:46?
?*?*???Description?:???...
?*?*???Author??????:???wangfei?
?*?********************************************************************************
?*?*/
#if?0????//wangfei?Comment?Start?2019-09-02?10:46
#endif???//wangfei?Comment?End???2019-09-02?10:46
#include???
#include???
#include???
#include???
#include???
#include???
#include???
#include???
#include???
#include???
#define?TOUCHKEY_TAG?????????????“keyDemo?“??
#define?TOUCHKEY_FILE????????????“/dev/input/event3“??
int?main(int?argc?char?**argv)??
{??
????int?nFd;??
????int?nRet;??
????struct?input_event?*sInputEvent
- 上一篇:如何對數據庫進行簽名
- 下一篇:模擬量轉換 庫
評論
共有 條評論