mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Fixed LUA placeholder
This commit is contained in:
1 parent
31196fb518
commit
a9dcc70897
1 file changed
+6
-6
@@ -15,8 +15,8 @@
|
|||||||
|
|
||||||
-- 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
|
||||||
|
|
||||||
@@ -25,8 +25,8 @@ 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
|
||||||
|
|
||||||
@@ -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