最終更新:2016-01-27 (水) 18:21:08 (3009d)
linux/input.h
http://lxr.free-electrons.com/source/include/linux/input.h?v=3.6
Linux 3.7以降
include
- #ifdef __KERNEL__
- #else
- sys/time.h
- sys/ioctl.h?
- sys/types.h
- linux/types.h
定義
構造体
- input_event - The event structure itself
struct input_event { struct timeval time; __u16 type; __u16 code; __s32 value; };
- input_id
- input_absinfo?
- input_keymap_entry?
- input_dev - represents an input device
- input_handler?
- input_handle?
- input_class?
ioctlの引数
EVIOCGVERSION _IOR?('E', 0x01, int) get driver version EVIOCGID? _IOR?('E', 0x02, struct input_id) get device ID EVIOCGREP? _IOR?('E', 0x03, unsigned int[2]) get repeat settings EVIOCSREP? _IOW?('E', 0x03, unsigned int[2]) set repeat settings EVIOCGKEYCODE? _IOR?('E', 0x04, unsigned int[2]) get keycode EVIOCGKEYCODE_V2? _IOR?('E', 0x04, struct input_keymap_entry) EVIOCSKEYCODE? _IOW?('E', 0x04, unsigned int[2]) set keycode EVIOCSKEYCODE_V2? _IOW?('E', 0x04, struct input_keymap_entry) EVIOCGNAME(len) _IOC?(_IOC_READ, 'E', 0x06, len) get device name EVIOCGPHYS?(len) _IOC?(_IOC_READ, 'E', 0x07, len) get physical location EVIOCGUNIQ?(len) _IOC?(_IOC_READ, 'E', 0x08, len) get unique identifier EVIOCGPROP(len) _IOC?(_IOC_READ, 'E', 0x09, len) get device properties
関数
- input_allocate_device - メモリの割りあて
- input_free_device?
- input_register_device - デバイスの登録
- input_unregister_device?
- input_get_device?
- input_put_device?
- input_event
- input_inject_event?
- input_report_key
- input_report_rel
- input_report_abs?
- input_sync
- input_mt_sync