Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 227118
b: refs/heads/master
c: b88cbd3
h: refs/heads/master
v: v3
  • Loading branch information
Henrik Rydberg committed Dec 16, 2010
1 parent 9a831b4 commit d259848
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4a864183fb28ddf553e5b0b47858bc3c518dae94
refs/heads/master: b88cbd3a007608a224fad5413de6170c75afd5a7
2 changes: 2 additions & 0 deletions trunk/drivers/hid/hid-egalax.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ static int egalax_input_mapping(struct hid_device *hdev, struct hid_input *hi,
case HID_UP_GENDESK:
switch (usage->hid) {
case HID_GD_X:
field->logical_maximum = 32760;
hid_map_usage(hi, usage, bit, max,
EV_ABS, ABS_MT_POSITION_X);
set_abs(input, ABS_MT_POSITION_X, field, 0);
/* touchscreen emulation */
set_abs(input, ABS_X, field, 0);
return 1;
case HID_GD_Y:
field->logical_maximum = 32760;
hid_map_usage(hi, usage, bit, max,
EV_ABS, ABS_MT_POSITION_Y);
set_abs(input, ABS_MT_POSITION_Y, field, 0);
Expand Down

0 comments on commit d259848

Please sign in to comment.