-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpcp-System-lua.patch
30 lines (26 loc) · 961 Bytes
/
pcp-System-lua.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- share/jive/jive/System.lua.orig 2024-02-03 16:10:50.377804656 -0500
+++ share/jive/jive/System.lua 2024-02-03 16:21:08.532078038 -0500
@@ -38,7 +38,9 @@
local oo = require("loop.simple")
local log = require("jive.utils.log").logger("jivelite")
-
+--start pCP patch----------------------------------------------------
+local rpi = require("jive.utils.rpi_bl")
+--end pCP patch------------------------------------------------------
-- our class
module(...)
@@ -96,9 +98,15 @@
return _capabilities["hasDigitalOut"] ~= nil
end
+--start pCP patch----------------------------------------------------
function hasTouch(self)
- return _capabilities["touch"] ~= nil
+ if rpi.isTouch() ~= nil then
+ return true
+ else
+ return _capabilities["touch"] ~= nil
+ end
end
+--end pCP patch------------------------------------------------------
function hasIr(self)
return _capabilities["ir"] ~= nil