~ubuntu-branches/ubuntu/raring/wacom-tools/raring

« back to all changes in this revision

Viewing changes to linuxwacom/src/2.6.22/wacom_sys.c

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-05-22 12:04:32 UTC
  • mfrom: (1.12.2 upstream) (2.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090522120432-00suvwukj864ipib
Tags: 1:0.8.3.2-1ubuntu1
* Merge with Debian unstable, remaining changes:
  - Bump the epoch because of old Ubuntu packaging.
  - debian/control:
    - Change the Maintainer address.
    - Bump the epoch on Replaces/Conflicts.
    - Don't build wacom-kernel-source anymore (#71944).
  - debian/wacom.postinst:
    Remove old files.
  - debian/rules: Disable the scaling quirk.
  - Enable patch system (quilt).
    - Import debian/xsfbs/*
    - Add quilt to build-deps.
  - Include wacomcpl so the stylus can be calibrated. (#216347)
    - debian/rules: --enable-libwacomxi
    - debian/control: Add tcl-dev, tk-dev to Build-Depends, and tcl,
      tk to wacom-tools Depends.
  - Modify 10-linuxwacom.fdi to support WALTOP and N-Trig.
  - Add 104_revert-check.diff: Don't check the serial number, it breaks
    some devices. Disabled for now, needs testing because part of it
    is upstream now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
211
211
        input_set_abs_params(input_dev, ABS_RY, 0, 4096, 0, 0);
212
212
}
213
213
 
 
214
void input_dev_i4s(struct input_dev *input_dev, struct wacom_wac *wacom_wac)
 
215
{
 
216
        input_dev->keybit[LONG(BTN_DIGI)] |= BIT(BTN_TOOL_FINGER);
 
217
        input_dev->keybit[LONG(BTN_MISC)] |= BIT(BTN_0) | BIT(BTN_1) | BIT(BTN_2) | BIT(BTN_3);
 
218
        input_dev->keybit[LONG(BTN_MISC)] |= BIT(BTN_4) | BIT(BTN_5) | BIT(BTN_6);
 
219
        input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
 
220
}
 
221
 
 
222
void input_dev_i4(struct input_dev *input_dev, struct wacom_wac *wacom_wac)
 
223
{
 
224
        input_dev->keybit[LONG(BTN_MISC)] |= BIT(BTN_7) | BIT(BTN_8);
 
225
}
 
226
 
214
227
void input_dev_bee(struct input_dev *input_dev, struct wacom_wac *wacom_wac)
215
228
{
216
229
        input_dev->keybit[LONG(BTN_MISC)] |= BIT(BTN_8) | BIT(BTN_9);
378
391
 
379
392
        endpoint = &intf->cur_altsetting->endpoint[0].desc;
380
393
 
 
394
        /* Initialize touch_x_max and touch_y_max in case it is not defined */
 
395
        if (wacom_wac->features->type == TABLETPC) {
 
396
                wacom_wac->features->touch_x_max = 1023;
 
397
                wacom_wac->features->touch_y_max = 1023;
 
398
        } else {
 
399
                wacom_wac->features->touch_x_max = 0;
 
400
                wacom_wac->features->touch_y_max = 0;
 
401
        }
 
402
 
381
403
        /* TabletPC need to retrieve the physical and logical maximum from report descriptor */
382
404
        if (wacom_wac->features->type == TABLETPC) {
383
405
                if (usb_get_extra_descriptor(interface, HID_DEVICET_HID, &hid_desc)) {