input_report APIs
来源:互联网 发布:冒险岛网络传输异常 编辑:程序博客网 时间:2024/05/17 21:07
static inline void input_report_key(struct input_dev *dev, unsigned int code, int value)
{
input_event(dev, EV_KEY, code, !!value);
}
static inline void input_report_rel(struct input_dev *dev, unsigned int code, int value)
{
input_event(dev, EV_REL, code, value);
}
static inline void input_report_abs(struct input_dev *dev, unsigned int code, int value)
{
input_event(dev, EV_ABS, code, value);
}
static inline void input_report_ff_status(struct input_dev *dev, unsigned int code, int value)
{
input_event(dev, EV_FF_STATUS, code, value);
}
static inline void input_report_switch(struct input_dev *dev, unsigned int code, int value)
{
input_event(dev, EV_SW, code, !!value);
}
static inline void input_sync(struct input_dev *dev)
{
input_event(dev, EV_SYN, SYN_REPORT, 0);
}
static inline void input_mt_sync(struct input_dev *dev)
{
input_event(dev, EV_SYN, SYN_MT_REPORT, 0);
{
input_event(dev, EV_KEY, code, !!value);
}
static inline void input_report_rel(struct input_dev *dev, unsigned int code, int value)
{
input_event(dev, EV_REL, code, value);
}
static inline void input_report_abs(struct input_dev *dev, unsigned int code, int value)
{
input_event(dev, EV_ABS, code, value);
}
static inline void input_report_ff_status(struct input_dev *dev, unsigned int code, int value)
{
input_event(dev, EV_FF_STATUS, code, value);
}
static inline void input_report_switch(struct input_dev *dev, unsigned int code, int value)
{
input_event(dev, EV_SW, code, !!value);
}
static inline void input_sync(struct input_dev *dev)
{
input_event(dev, EV_SYN, SYN_REPORT, 0);
}
static inline void input_mt_sync(struct input_dev *dev)
{
input_event(dev, EV_SYN, SYN_MT_REPORT, 0);
}
by zhangshaoyan at May 20,2015.
0 0
- input_report APIs
- APIs
- rails APIS
- Wave APIs
- android APIs
- Fragments APIs
- RESTful APIs
- some apis
- moco apis
- Chatbot APIs
- Debugger APIs
- BitCoin APIs
- Kernel32.DLL APIs
- Kernel32.DLL APIs
- 内核时间操作APIs
- 自用apis和examples
- Java vs. Android APIs
- Powerful Google Maps APIs
- Windows下完全删除MySQL
- 黑马程序员—————Map集合
- hadoop distcp使用
- 如何成为QTP专家
- 已解决:sql server 删除用户时报错:(存在该用户的组织构架,无法删除)
- input_report APIs
- Android--showDialog()、onPrepareDialog()和onCreateDialog()的关系 .
- iOS 的 XMPPFramework 简介
- 如何交换a,b的值。
- Cocos2d C++ 解析CSV
- 如何在C/C++中动态分配二维数组
- 小米4.4.4 miui 调用系统裁剪没有返回数据
- test1
- android ImageButton和Button区别