mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-25 04:56:18 +00:00
22 lines
754 B
Diff
22 lines
754 B
Diff
diff -Naur linux-3.16.1/drivers/media/rc/imon.c linux-3.16.1.patch/drivers/media/rc/imon.c
|
|
--- linux-3.16.1/drivers/media/rc/imon.c 2014-08-14 04:36:35.000000000 +0200
|
|
+++ linux-3.16.1.patch/drivers/media/rc/imon.c 2014-08-15 13:57:16.587620642 +0200
|
|
@@ -1344,6 +1344,17 @@
|
|
}
|
|
} else {
|
|
/*
|
|
+ * For users without stabilized, just ignore any value getting
|
|
+ * to close to the diagonal.
|
|
+ */
|
|
+ if ((abs(rel_y) < 2 && abs(rel_x) < 2) ||
|
|
+ abs(abs(rel_y) - abs(rel_x)) < 2 ) {
|
|
+ spin_lock_irqsave(&ictx->kc_lock, flags);
|
|
+ ictx->kc = KEY_UNKNOWN;
|
|
+ spin_unlock_irqrestore(&ictx->kc_lock, flags);
|
|
+ return;
|
|
+ }
|
|
+ /*
|
|
* Hack alert: instead of using keycodes, we have
|
|
* to use hard-coded scancodes here...
|
|
*/
|