From c96fc292f995f8d974de8d343316b940c38370bc Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Sun, 4 Nov 2012 11:19:31 +0800 Subject: [PATCH] adapt inputevent.lua to new emu input implementaion --- frontend/ui/inputevent.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/ui/inputevent.lua b/frontend/ui/inputevent.lua index fb16abd30..c41dac085 100644 --- a/frontend/ui/inputevent.lua +++ b/frontend/ui/inputevent.lua @@ -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