Steal code from ds84182 and not give credit

I totally wrote this code and ds84182 didn't at all make a pr for this.
This commit is contained in:
gamax92 2015-08-24 17:10:25 -06:00
parent 3c284b0ba3
commit f2aa100686
2 changed files with 8 additions and 2 deletions

View File

@ -153,7 +153,7 @@ local function boot()
elsa.draw() elsa.draw()
end end
SDL.delay(1) SDL.delay(16)
end end
end end

View File

@ -5,7 +5,7 @@ component.connect("filesystem",gen_uuid(),nil,"customlua/ocemu",true)
local obj = {} local obj = {}
function obj.connect(kind, address, slot, ...) function obj.connect(kind, address, slot, ...)
cprint("screen.isTouchModeInverted") cprint("ocemu.connect", kind, address, slot, ...)
compCheckArg(1,kind,"string") compCheckArg(1,kind,"string")
compCheckArg(2,address,"string","number","nil") compCheckArg(2,address,"string","number","nil")
compCheckArg(3,slot,"number","nil") compCheckArg(3,slot,"number","nil")
@ -19,11 +19,17 @@ function obj.connect(kind, address, slot, ...)
end end
return component.connect(kind, address, slot, ...) return component.connect(kind, address, slot, ...)
end end
function obj.disconnect(address) function obj.disconnect(address)
cprint("ocemu.disconnect", address)
checkArg(1,address,"string") checkArg(1,address,"string")
return component.disconnect(address) return component.disconnect(address)
end end
function obj.log(...)
print(...)
end
local cec = {} local cec = {}
local doc = {} local doc = {}