mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-31 17:53:32 +00:00
Fixed LUA placeholder
This commit is contained in:
parent
31196fb518
commit
a9dcc70897
@ -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);
|
||||||
Loading…
x
Reference in New Issue
Block a user