no mkfifo on Windows

pull/924/head
chrox 10 years ago
parent 7d22318641
commit a0cd4816a7

@ -345,16 +345,17 @@ function Input:init()
self.event_map[10021] = "NotCharging" self.event_map[10021] = "NotCharging"
if util.isEmulated() then if util.isEmulated() then
os.remove("/tmp/emu_event") if not util.isWindows() then
os.execute("mkfifo /tmp/emu_event") os.remove("/tmp/emu_event")
input.open("/tmp/emu_event") os.execute("mkfifo /tmp/emu_event")
input.open("/tmp/emu_event")
end
-- SDL key codes -- SDL key codes
if not util.haveSDL2() then if not util.haveSDL2() then
self.event_map = self.sdl_event_map self.event_map = self.sdl_event_map
else else
self.event_map = self.sdl2_event_map self.event_map = self.sdl2_event_map
end end
else else
local dev_mod = Device:getModel() local dev_mod = Device:getModel()
if not Device:isKobo() then if not Device:isKobo() then

Loading…
Cancel
Save