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:
parent
dfb1f9f19d
commit
20dbc1985e
@ -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)
|
||||||
Loading…
x
Reference in New Issue
Block a user