From 6ea53840c9cb9b99c41fbb4d87a1acac8c0889e5 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 1 Mar 2013 10:19:54 +0100 Subject: SLIMaxMgr III beta --- scripts/devhook.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'scripts/devhook.lua') diff --git a/scripts/devhook.lua b/scripts/devhook.lua index 90a8099..28c40e1 100755 --- a/scripts/devhook.lua +++ b/scripts/devhook.lua @@ -1,10 +1,8 @@ --- SLIMax Mgr Lua Script v2 --- Copyright (c)2011-2013 by EK and Zappadoc - All Rights Reserved. --- Use this script to bypass any previous functions and show what --- you want onto your device. +-- SLIMax Mgr Lua Script v3 +-- Copyright (c)2012-2013 by Zappadoc - All Rights Reserved. --- param = device type (integer - see mDeviceType table) +-- param = device type (integer - see GetDeviceType() ) -- return 1 to send processed data to the device and bypass Mgr -- return 0 to skip and give the control to Mgr function deviceReport(devType) @@ -21,7 +19,6 @@ function deviceReport(devType) -- if result = 1 bypass the script below and return 1 if result <= 1 then return result end -- if result >= 2 continue - -- sim paused? local paused = GetContextInfo("paused") @@ -30,6 +27,7 @@ function deviceReport(devType) if paused or spdLmt == 0 then -- reset value SetDigitsAllowed(true) + SetFanatecDigitsAllowed(true) end -- cgit v1.2.3