mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
adapt inputevent.lua to new emu input implementaion
This commit is contained in:
@@ -240,7 +240,8 @@ Input = {
|
||||
function Input:init()
|
||||
if util.isEmulated()==1 then
|
||||
-- dummy call that will initialize SDL input handling
|
||||
input.open("")
|
||||
os.execute("rm -f emu_event && mkfifo emu_event")
|
||||
input.open("emu_event")
|
||||
-- SDL key codes
|
||||
self.event_map = self.sdl_event_map
|
||||
else
|
||||
@@ -292,7 +293,7 @@ function Input:waitEvent(timeout_us, timeout_s)
|
||||
end
|
||||
DEBUG("got error waiting for events:", ev)
|
||||
if ev ~= "Waiting for input failed: 4\n" then
|
||||
-- we abort if the error is not EINTR
|
||||
-- we only abort if the error is not EINTR
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user