diff options
Diffstat (limited to 'scripts/devhook.lua')
-rwxr-xr-x | scripts/devhook.lua | 10 |
1 files changed, 4 insertions, 6 deletions
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
|