v1.12.4 - Added a small buffer time to the event library so events like keystrokes won't get skipped when there is a little bit of lag.
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
local agcfg = {
|
local agcfg = {
|
||||||
["halyde"] = {
|
["halyde"] = {
|
||||||
["maindir"] = "",
|
["maindir"] = "",
|
||||||
["version"] = "1.12.3",
|
["version"] = "1.12.4",
|
||||||
["description"] = "A universal, customizable and feature-packed operating system for OpenComputers.",
|
["description"] = "A universal, customizable and feature-packed operating system for OpenComputers.",
|
||||||
["directories"] = {
|
["directories"] = {
|
||||||
"halyde/apps",
|
"halyde/apps",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
local loadfile = ...
|
local loadfile = ...
|
||||||
local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile)
|
local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile)
|
||||||
|
|
||||||
_G._OSVERSION = "Halyde 1.12.3"
|
_G._OSVERSION = "Halyde 1.12.4"
|
||||||
_G._OSLOGO = ""
|
_G._OSLOGO = ""
|
||||||
local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil
|
local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil
|
||||||
repeat
|
repeat
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
local computer = import("computer")
|
local computer = import("computer")
|
||||||
local event = {}
|
local event = {}
|
||||||
|
|
||||||
|
local bufferTime = 0.05 -- A little bit of buffer time so event's won't be skipped by accident.
|
||||||
|
|
||||||
--local ocelot = component.proxy(component.list("ocelot")())
|
--local ocelot = component.proxy(component.list("ocelot")())
|
||||||
function event.pull(...)
|
function event.pull(...)
|
||||||
local args = {...}
|
local args = {...}
|
||||||
@@ -27,7 +29,7 @@ function event.pull(...)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if evmgr.eventQueue[i][1] >= startTime then
|
if evmgr.eventQueue[i][1] >= startTime - bufferTime then
|
||||||
foundevent = true
|
foundevent = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user