#2, by afrlmeSaturday, 31. January 2015, 14:34 10 years ago
This is completely untested on my part. Just a theoretical script.
You need to create a condition somewhere. Call it: "keyboard_active" & set to true
Now add this to the script section.
function keyboardHandler(eventType, character, keycode, modifiers)
if not Conditions["keyboard_active"].ConditionValue then
return true
else
return false
end
end
registerEventHandler("keyEvent", "keyboardHandler")
To toggle keyboard on / off just change the condition value.
#6, by afrlmeSunday, 01. February 2015, 15:46 10 years ago
Same bloody thing!
I suppose I could have said: "change the value of the condition" or I could have even said: "change the conditions value" or I could have said, what I already said.