| .. | .. |
|---|
| 183 | 183 | //struct wacom_features *features = wac_i2c->features; |
|---|
| 184 | 184 | u8 *data = wac_i2c->data; |
|---|
| 185 | 185 | unsigned int x, y, pressure; |
|---|
| 186 | | - signed short tilt_x, tilt_y; |
|---|
| 187 | 186 | unsigned char tsw, f1, f2, ers; |
|---|
| 188 | 187 | int error; |
|---|
| 189 | 188 | |
|---|
| .. | .. |
|---|
| 201 | 200 | x = le16_to_cpup((__le16 *)&data[4]); |
|---|
| 202 | 201 | y = le16_to_cpup((__le16 *)&data[6]); |
|---|
| 203 | 202 | pressure = le16_to_cpup((__le16 *)&data[8]); |
|---|
| 204 | | - tilt_x = le16_to_cpup((__le16 *)&data[11]); |
|---|
| 205 | | - tilt_y = le16_to_cpup((__le16 *)&data[13]); |
|---|
| 206 | 203 | |
|---|
| 207 | 204 | if (!wac_i2c->prox) |
|---|
| 208 | 205 | wac_i2c->tool = (data[3] & 0x0c) ? |
|---|
| .. | .. |
|---|
| 226 | 223 | input_report_key(input, BTN_STYLUS2, f2); |
|---|
| 227 | 224 | input_report_abs(input, ABS_X, x); |
|---|
| 228 | 225 | input_report_abs(input, ABS_Y, y); |
|---|
| 229 | | - input_report_abs(input, ABS_TILT_X, tilt_x / 100); |
|---|
| 230 | | - input_report_abs(input, ABS_TILT_Y, tilt_y / 100); |
|---|
| 231 | 226 | input_report_abs(input, ABS_PRESSURE, pressure); |
|---|
| 232 | 227 | input_sync(input); |
|---|
| 233 | 228 | |
|---|
| .. | .. |
|---|
| 408 | 403 | input_set_abs_params(input, ABS_X, 0, features.x_max, 0, 0); |
|---|
| 409 | 404 | input_set_abs_params(input, ABS_Y, 0, features.y_max, 0, 0); |
|---|
| 410 | 405 | input_set_abs_params(input, ABS_PRESSURE, 0, features.pressure_max, 0, 0); |
|---|
| 411 | | - input_set_abs_params(input, ABS_TILT_X, -90, 90, 0, 0); |
|---|
| 412 | | - input_set_abs_params(input, ABS_TILT_Y, -90, 90, 0, 0); |
|---|
| 413 | 406 | |
|---|
| 414 | 407 | input_set_drvdata(input, wac_i2c); |
|---|
| 415 | 408 | |
|---|