Skip to content

Commit

Permalink
HID: sony: Update the DualShock 4 touchpad resolution
Browse files Browse the repository at this point in the history
The DualShock 4 touchpad has been measured to have a resolution of
44.86 dots/mm which equates to 1920x942.

Signed-off-by: Frank Praznik <frank.praznik@oh.rr.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Frank Praznik authored and Jiri Kosina committed Sep 25, 2014
1 parent ce8efc3 commit 981c5b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/hid/hid-sony.c
Original file line number Diff line number Diff line change
Expand Up @@ -1107,10 +1107,10 @@ static void sony_input_configured(struct hid_device *hdev,

/*
* The Dualshock 4 touchpad supports 2 touches and has a
* resolution of 1920x940.
* resolution of 1920x942 (44.86 dots/mm).
*/
if (sc->quirks & DUALSHOCK4_CONTROLLER) {
if (sony_register_touchpad(hidinput, 2, 1920, 940) != 0)
if (sony_register_touchpad(hidinput, 2, 1920, 942) != 0)
hid_err(sc->hdev,
"Unable to initialize multi-touch slots\n");
}
Expand Down

0 comments on commit 981c5b4

Please sign in to comment.