最終更新:2016-01-27 (水) 18:21:08 (3004d)  

linux/input.h
Top / linux / input.h

http://lxr.free-electrons.com/source/include/linux/input.h?v=3.6

Linux 3.7以降

include

定義

構造体

  • 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

関数

type

code

関連