mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
18 lines
902 B
Diff
18 lines
902 B
Diff
diff -Naur a/src/uinput.py b/src/uinput.py
|
|
--- a/src/uinput.py 2016-01-02 23:13:18.000000000 +0100
|
|
+++ b/src/uinput.py 2016-01-03 08:44:34.003676619 +0100
|
|
@@ -34,10 +34,10 @@
|
|
from collections import deque
|
|
|
|
# Get All defines from linux headers
|
|
-if os.path.exists('/usr/include/linux/input-event-codes.h'):
|
|
- CHEAD = defines('/usr/include', 'linux/input-event-codes.h')
|
|
+if os.path.exists('/storage/.kodi/addons/driver.steamcontroller/include/linux/input-event-codes.h'):
|
|
+ CHEAD = defines('/storage/.kodi/addons/driver.steamcontroller/include', 'linux/input-event-codes.h')
|
|
else:
|
|
- CHEAD = defines('/usr/include', 'linux/input.h')
|
|
+ CHEAD = defines('/storage/.kodi/addons/driver.steamcontroller/include', 'linux/input.h')
|
|
|
|
# Keys enum contains all keys and button from linux/uinput.h (KEY_* BTN_*)
|
|
Keys = IntEnum('Keys', {i: CHEAD[i] for i in CHEAD.keys() if (i.startswith('KEY_') or
|