Skip to content

Commit

Permalink
PB: Enable gsensor EVT_ORIENTATION events on modern devices with InkV…
Browse files Browse the repository at this point in the history
…iew version 6.7 (#1566)
  • Loading branch information
rjd22 committed Dec 23, 2022
1 parent 0d8f707 commit c3448b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ffi/input_pocketbook.lua
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ function input:open()
inkview.iv_setup_gsensor()
return
end

-- This enables the inkview orientation events to be sent to translateEvent
C.setenv("SUPPORT_EVT_ORIENTATION", "YES", 1)

-- Initialize inkview ordinarily.
compat.PrepareForLoop(translateEvent)
end
Expand Down

0 comments on commit c3448b7

Please sign in to comment.