mirror of
https://github.com/zenith391/OCEmu.git
synced 2025-09-28 15:34:05 -04:00
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:
parent
3c284b0ba3
commit
f2aa100686
@ -153,7 +153,7 @@ local function boot()
|
||||
elsa.draw()
|
||||
end
|
||||
|
||||
SDL.delay(1)
|
||||
SDL.delay(16)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -5,7 +5,7 @@ component.connect("filesystem",gen_uuid(),nil,"customlua/ocemu",true)
|
||||
local obj = {}
|
||||
|
||||
function obj.connect(kind, address, slot, ...)
|
||||
cprint("screen.isTouchModeInverted")
|
||||
cprint("ocemu.connect", kind, address, slot, ...)
|
||||
compCheckArg(1,kind,"string")
|
||||
compCheckArg(2,address,"string","number","nil")
|
||||
compCheckArg(3,slot,"number","nil")
|
||||
@ -19,11 +19,17 @@ function obj.connect(kind, address, slot, ...)
|
||||
end
|
||||
return component.connect(kind, address, slot, ...)
|
||||
end
|
||||
|
||||
function obj.disconnect(address)
|
||||
cprint("ocemu.disconnect", address)
|
||||
checkArg(1,address,"string")
|
||||
return component.disconnect(address)
|
||||
end
|
||||
|
||||
function obj.log(...)
|
||||
print(...)
|
||||
end
|
||||
|
||||
local cec = {}
|
||||
|
||||
local doc = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user