mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Fixed LUA placeholder
This commit is contained in:
1 parent
b619de173b
commit
28080e3ed5
1 file changed
+10
-10
@@ -15,20 +15,20 @@
|
|||||||
|
|
||||||
-- This event is raised after every profile update, before drawing.
|
-- This event is raised after every profile update, before drawing.
|
||||||
function updateHandler(profile, eventArgs)
|
function updateHandler(profile, eventArgs)
|
||||||
-- Don't do anything when previewing. You can ofcourse remove this if you want
|
-- In this example we only want to update once per frame when the keyboard is updated
|
||||||
if eventArgs.Preview == true then
|
if eventArgs.DeviceType != "keyboard" then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Custom update code here
|
-- Custom update code here
|
||||||
end
|
end
|
||||||
|
|
||||||
-- This event is raised after every profile draw, after updating.
|
-- This event is raised after every profile draw, after updating.
|
||||||
function drawHandler(profile, eventArgs)
|
function drawHandler(profile, eventArgs)
|
||||||
-- Don't do anything when previewing. You can ofcourse remove this if you want
|
-- In this example we only want to draw to the keyboard
|
||||||
if eventArgs.Preview == true then
|
if eventArgs.DeviceType != "keyboard" then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Custom draw code here
|
-- Custom draw code here
|
||||||
end
|
end
|
||||||
@@ -36,5 +36,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.ProfileUpdating.add(updateHandler);
|
Events.DeviceUpdating.add(updateHandler);
|
||||||
Events.ProfileDrawing.add(drawHandler);
|
Events.DeviceDrawing.add(drawHandler);
|
||||||
Reference in new issue
Block a user