mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-22 11:30:38 +01:00
test: set pressure to zero on proxout for the tablets with forced prox out
If a test goes past the tip-down threshold, the proximity timeout does not trigger. And one can spend a long time trying to debug why the test fails... As far as I vaguely remember, these devices' pressure values are correct enough, it's just the lack of BTN_TOOL_PEN that is the issue so instead of a proper proximity out, we just send enough data to set the pressure to below the tip threshold.
This commit is contained in:
parent
c5f808ac2e
commit
8603584e33
3 changed files with 20 additions and 0 deletions
|
|
@ -38,6 +38,12 @@ static struct input_event proximity_in[] = {
|
|||
};
|
||||
|
||||
static struct input_event proximity_out[] = {
|
||||
/* This tablet doesn't report BTN_TOOL_PEN 0 on proximity out but I *think*
|
||||
* it still reports pressure values of zero? Who knows, we'd have to
|
||||
* get our hands on the tablet again. Meanwhile, let's force the
|
||||
* pressure to zero at least so other tests don't have to guess.
|
||||
*/
|
||||
{ .type = EV_ABS, .code = ABS_PRESSURE, .value = 0 },
|
||||
{ .type = EV_SYN, .code = SYN_REPORT, .value = 0 },
|
||||
{ .type = -1, .code = -1 },
|
||||
};
|
||||
|
|
|
|||
|
|
@ -36,6 +36,13 @@ static struct input_event proximity_in[] = {
|
|||
};
|
||||
|
||||
static struct input_event proximity_out[] = {
|
||||
/* This tablet doesn't report BTN_TOOL_PEN 0 on proximity out but I *think*
|
||||
* it still reports pressure values of zero? Who knows, we'd have to
|
||||
* get our hands on the tablet again. Meanwhile, let's force the
|
||||
* pressure to zero at least so other tests don't have to guess.
|
||||
*/
|
||||
{ .type = EV_ABS, .code = ABS_PRESSURE, .value = 0 },
|
||||
{ .type = EV_SYN, .code = SYN_REPORT, .value = 0 },
|
||||
{ .type = -1, .code = -1 },
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,13 @@ static struct input_event proximity_in[] = {
|
|||
};
|
||||
|
||||
static struct input_event proximity_out[] = {
|
||||
/* This tablet doesn't report BTN_TOOL_PEN 0 on proximity out but I *think*
|
||||
* it still reports pressure values of zero? Who knows, we'd have to
|
||||
* get our hands on the tablet again. Meanwhile, let's force the
|
||||
* pressure to zero at least so other tests don't have to guess.
|
||||
*/
|
||||
{ .type = EV_ABS, .code = ABS_PRESSURE, .value = 0 },
|
||||
{ .type = EV_SYN, .code = SYN_REPORT, .value = 0 },
|
||||
{ .type = -1, .code = -1 },
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue