From ab9f1ff8ebd3c56c2c9942013d8520af6b6ca444 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Wed, 13 Feb 2013 16:57:23 +0100 Subject: Default SLIMaxManager II scripts --- scripts/global_custom_scripts.lua | 109 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100755 scripts/global_custom_scripts.lua (limited to 'scripts/global_custom_scripts.lua') diff --git a/scripts/global_custom_scripts.lua b/scripts/global_custom_scripts.lua new file mode 100755 index 0000000..c39db3e --- /dev/null +++ b/scripts/global_custom_scripts.lua @@ -0,0 +1,109 @@ +-- Global Custom SLIMax Manager Scripts v2.2 +-- Copyright ©2011-2013 by Zappadoc - All Rights Reserved. +-- last change by Zappadoc - 2012-11 + +-- add you global custom functions and globals variables here +-- patch the std SLIMax Events with your global custom scripts if needed +-- see the scripting section of the forum for more info... + +-- IMPORTANT: +-- this script will not be deleted by uninstalling the software + +-- ================================ +-- CONSTANTS + + +-- ================================ +-- additional lua extension module dll + + +-- ================================ +-- additional scripts file + +-- ================================ +-- custom globals + + +-- ================================ +-- custom functions + +-- ================================ +-- custom events + +function global_custom_controlsEvent(deviceIdx, ctrlType, ctrlPos, value, funcIndex) + -- type your custom controls script here (manage buttons, switches and encoders) + return 2 +end + +function global_custom_deviceReport(devType) + -- type your script here (just before sending report to the device ) + return 2 +end + +function global_custom_ospMethodEvent(idx) + -- type your custom Optimal Shift Points (OSP) method here + return 2 +end + +function global_custom_shiftLightsMethodEvent(idx) + -- type your custom shiftlights method here + return 2 +end + +function global_custom_shiftLightsBU0710Event(idx) + -- type your custom shiftlights method for BU0710 device only here + return 2 +end + +function global_custom_leftDigitsEvent(swPosition) + -- type your custom script related to left SLI-PRO digits panel here + return 2 +end + +function global_custom_rightDigitsEvent(swPosition) + -- type your custom script related to right SLI-PRO digits panel here + return 2 +end + +function global_custom_spdLmtMethodEvent(idx) + -- type your custom script related to speed limiter here + return 2 +end + +function global_custom_gearEvent(gear) + -- type your custom script related to gear here + return 2 +end + +function global_custom_enterSessionEvent(devType) + -- type your custom script related to session start here + return 2 +end + +function global_custom_exitSessionEvent(devType) + -- type your custom script related to session stop here + return 2 +end + +function global_custom_ledEvent(idx, ledFunction, state) + -- type your custom script related to LEDs here + return 2 +end + + +-- ================================ +-- local custom events PLACEHOLDERS +-- DO NOT CHANGE THE SCRIPT BELOW +-- ================================ +function custom_controlsEvent(deviceIdx, ctrlType, ctrlPos, value, funcIndex) return 2 end +function custom_deviceReport(devType) return 2 end +function custom_ospMethodEvent(idx) return 2 end +function custom_shiftLightsMethodEvent(idx) return 2 end +function custom_shiftLightsBU0710Event(idx) return 2 end +function custom_leftDigitsEvent(swPosition) return 2 end +function custom_rightDigitsEvent(swPosition) return 2 end +function custom_spdLmtMethodEvent(idx) return 2 end +function custom_gearEvent(gear) return 2 end +function custom_enterSessionEvent(devType) return 2 end +function custom_exitSessionEvent(devType) return 2 end +function custom_ledEvent(idx, ledFunction, state) return 2 end -- cgit v1.2.3