switch termination to quit botton
This commit is contained in:
7
main.lua
7
main.lua
@@ -780,11 +780,10 @@ function Main()
|
|||||||
-- Add a small delay to avoid overloading the system
|
-- Add a small delay to avoid overloading the system
|
||||||
os.sleep(0.1)
|
os.sleep(0.1)
|
||||||
|
|
||||||
local event = nil
|
|
||||||
local function getTerminateEvent()
|
local function getTerminateEvent()
|
||||||
event = os.pullEventRaw("terminate")
|
local event, key, is_held = os.pullEventRaw("key")
|
||||||
if event == "terminate" then
|
if keys.getName(key) == "q" then
|
||||||
print("Terminate Event Received")
|
print("Quit Input Received")
|
||||||
|
|
||||||
print("Writing to thruster config file.")
|
print("Writing to thruster config file.")
|
||||||
local thrusterConfigFile = fs.open(Config.thrusterConfigPath, "w+")
|
local thrusterConfigFile = fs.open(Config.thrusterConfigPath, "w+")
|
||||||
|
|||||||
Reference in New Issue
Block a user