Don't recap the second scan

reviewable/pr11807/r4
NiLuJe 3 weeks ago
parent ea94c8509e
commit 76cb5d636c

@ -243,7 +243,7 @@ function Kindle:openInputDevices()
-- Getting the device where rotation events end up without catching a bunch of false-positives is... trickier,
-- thanks to the inane event code being used...
if self:hasGSensor() then
devices = FBInkInput.fbink_input_scan(C.INPUT_ROTATION_EVENT, C.INPUT_TABLET, C.SCAN_ONLY, dev_count)
devices = FBInkInput.fbink_input_scan(C.INPUT_ROTATION_EVENT, C.INPUT_TABLET, bit.bor(C.SCAN_ONLY, C.NO_RECAP), dev_count)
if devices ~= nil then
for i = 0, tonumber(dev_count[0]) - 1 do
local dev = devices[i]

Loading…
Cancel
Save