mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-01-02 10:43:31 +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
|
||||
-- updated. If you don't do this the updateHandler will trigger on every
|
||||
-- device's update.
|
||||
if eventArgs.DeviceType != "keyboard" then
|
||||
if not (eventArgs.DeviceType == "keyboard") then
|
||||
return
|
||||
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
|
||||
-- own drawing event
|
||||
if eventArgs.DeviceType != "keyboard" then
|
||||
if not (eventArgs.DeviceType == "keyboard") then
|
||||
return
|
||||
end
|
||||
|
||||
@ -49,5 +49,5 @@ end
|
||||
|
||||
-- Register the default events, you can rename/remove these if you so desire.
|
||||
-- These events are raised every 40 ms (25 times a second).
|
||||
Events.DeviceUpdating.add(updateHandler);
|
||||
Events.DeviceDrawing.add(drawHandler);
|
||||
Events.DeviceUpdating.add(updateHandler)
|
||||
Events.DeviceDrawing.add(drawHandler)
|
||||
Loading…
x
Reference in New Issue
Block a user