mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
23 lines
1.5 KiB
Diff
23 lines
1.5 KiB
Diff
diff -Naur eventlircd-40/src/input.c eventlircd-40.patch/src/input.c
|
|
--- eventlircd-40/src/input.c 2010-11-30 00:52:50.000000000 +0100
|
|
+++ eventlircd-40.patch/src/input.c 2010-12-11 21:56:50.440604354 +0100
|
|
@@ -1097,12 +1097,12 @@
|
|
if (evkey_type[device->current.event_out.code] == EVENTLIRCD_EVKEY_TYPE_KEY) {
|
|
time_delta = 1000000 * (device->current.event_out.time.tv_sec - previous->event_out.time.tv_sec ) +
|
|
(device->current.event_out.time.tv_usec - previous->event_out.time.tv_usec);
|
|
- if (((previous->repeat_count == 0) && (time_delta < 900000)) ||
|
|
- ((previous->repeat_count == 1) && (time_delta < 500000)) ||
|
|
- ((previous->repeat_count == 2) && (time_delta < 300000)) ||
|
|
- ((previous->repeat_count == 3) && (time_delta < 200000)) ||
|
|
- ((previous->repeat_count == 4) && (time_delta < 150000)) ||
|
|
- ((previous->repeat_count >= 5) && (time_delta < 100000))) {
|
|
+ if (((previous->repeat_count == 0) && (time_delta < 180000)) ||
|
|
+ ((previous->repeat_count == 1) && (time_delta < 125000)) ||
|
|
+ ((previous->repeat_count == 2) && (time_delta < 75000)) ||
|
|
+ ((previous->repeat_count == 3) && (time_delta < 50000)) ||
|
|
+ ((previous->repeat_count == 4) && (time_delta < 35000)) ||
|
|
+ ((previous->repeat_count >= 5) && (time_delta < 25000))) {
|
|
memset(&(device->current.event_out), 0, sizeof(struct input_event));
|
|
device->current.event_out.type = EVENTLIRCD_EV_NULL;
|
|
device->current.repeat_count = 0;
|