Skip to content

Commit

Permalink
do not generate touch events if the user requested to ignore the touc…
Browse files Browse the repository at this point in the history
…hscreen entirely via a hardware button
  • Loading branch information
pazos committed Aug 2, 2019
1 parent 6301277 commit e6c9594
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ffi/input_android.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ end

local is_in_touch = false
local function motionEventHandler(motion_event)
if android.isTouchscreenIgnored() then
return
end
local action = android.lib.AMotionEvent_getAction(motion_event)
local pointer_count = android.lib.AMotionEvent_getPointerCount(motion_event)
local pointer_index = bit.rshift(
Expand Down

0 comments on commit e6c9594

Please sign in to comment.