摘要:
Linux 的 Input Device 是重要的一個 subsystem,在進行實例介紹前,先大略了解一下相關的 API。Linux Input Deviceinput.c是Linux的”input”驅動程式,主要支援鍵盤與滑鼠的輸入;input.c介面有趣的地方是採用了事件(event)的方式來處理輸入,以下是input.c介面重要的資料結構與函數:* struct input_dev* void input_event(struct input_dev *dev, unsigned int type, unsigned int code, int value)* void input_ 阅读全文
posted @ 2010-07-28 20:31
arm-linux
阅读(575)
评论(0)
推荐(0)

浙公网安备 33010602011771号