v1.14.2 - Made a small fix to hopefully stop Halyde from missing keypresses.
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
local agcfg = {
|
local agcfg = {
|
||||||
["halyde"] = {
|
["halyde"] = {
|
||||||
["maindir"] = "",
|
["maindir"] = "",
|
||||||
["version"] = "1.14.1",
|
["version"] = "1.14.2",
|
||||||
["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.14.1"
|
_G._OSVERSION = "Halyde 1.14.2"
|
||||||
_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,7 +1,7 @@
|
|||||||
local computer = import("computer")
|
local computer = import("computer")
|
||||||
local event = {}
|
local event = {}
|
||||||
|
|
||||||
local bufferTime = 0.05 -- A little bit of buffer time so events won't be skipped by accident.
|
local bufferTime = 0.1 -- A little bit of buffer time so events 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(...)
|
||||||
@@ -24,7 +24,7 @@ function event.pull(...)
|
|||||||
local foundevent = false
|
local foundevent = false
|
||||||
if evtypes[1] then -- event type(s) specified
|
if evtypes[1] then -- event type(s) specified
|
||||||
for _, evtype in pairs(evtypes) do
|
for _, evtype in pairs(evtypes) do
|
||||||
if evmgr.eventQueue[i][2] == evtype and evmgr.eventQueue[i][1] >= startTime then
|
if evmgr.eventQueue[i][2] == evtype and evmgr.eventQueue[i][1] >= startTime - bufferTime then
|
||||||
foundevent = true
|
foundevent = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user