1. 28 1月, 2008 3 次提交
    • J
      HID: hid-input quirk for BTC 8193 · 36ccaad6
      Jiri Kosina 提交于
      BTC 8193 keyboard handles its scrollwheel in very non-standard way.
      It produces two non-standard usages for scrolling up and down, in
      both cases with postive value equaling to 1. We handle this by temporary
      mapping, which we then catch in quirk event handler, and remap to
      negative HWHEEL even in order to introduce correct behavior.
      
      Also the button requires special mapping, as it triggers standard-violating
      usage code.
      
      Reported in kernel.org bugzilla #9385
      Reported-by: NKir Kolyshkin <kir@sacred.ru>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      36ccaad6
    • J
      HID: separate hid-input event quirks from generic code · 87bc2aa9
      Jiri Kosina 提交于
      This patch separates also the hid-input quirks that have to be
      applied at the time the event occurs, so that the generic code
      handling HUT-compliant devices is not messed up by them too much.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      87bc2aa9
    • J
      HID: refactor mapping to input subsystem for quirky devices · 10bd065f
      Jiri Kosina 提交于
      Currently, the handling of mapping between hid and input for devices
      that don't conform to HUT 1.12 specification is very messy -- no per-device
      handling, no blacklists, conditions on idVendor and idProduct placed
      all over the code.
      
      This patch moves all the device-specific input mapping to a separate
      file, and introduces a blacklist-style handling for non-standard
      device-specific mappings.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      10bd065f