1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Fixed syntax in LUA placeholder

This commit is contained in:
SpoinkyNL 2017-09-12 16:57:09 +02:00
parent dfb1f9f19d
commit 20dbc1985e

View File

@ -23,7 +23,7 @@ function updateHandler(profile, eventArgs)
-- In this example we only want to update once per frame when the keyboard is -- In this example we only want to update once per frame when the keyboard is
-- updated. If you don't do this the updateHandler will trigger on every -- updated. If you don't do this the updateHandler will trigger on every
-- device's update. -- device's update.
if eventArgs.DeviceType != "keyboard" then if not (eventArgs.DeviceType == "keyboard") then
return return
end end
@ -39,7 +39,7 @@ function drawHandler(profile, eventArgs)
-- In this example we only want to draw to the keyboard. Each device has it's -- In this example we only want to draw to the keyboard. Each device has it's
-- own drawing event -- own drawing event
if eventArgs.DeviceType != "keyboard" then if not (eventArgs.DeviceType == "keyboard") then
return return
end end
@ -49,5 +49,5 @@ end
-- Register the default events, you can rename/remove these if you so desire. -- Register the default events, you can rename/remove these if you so desire.
-- These events are raised every 40 ms (25 times a second). -- These events are raised every 40 ms (25 times a second).
Events.DeviceUpdating.add(updateHandler); Events.DeviceUpdating.add(updateHandler)
Events.DeviceDrawing.add(drawHandler); Events.DeviceDrawing.add(drawHandler)