Beispiel #1
0
        public void blockBind(ActionMap othermap, string command)
        {
            if (othermap.isObject())
                {
                Util._error("ActionMap::blockBind - \"" + othermap + "\" is not an object!");
                return;
                }
            string bind = othermap.getBinding(command);

            if (bind != "")
                this.bind(Util.getField(bind, 0), Util.getField(bind, 1), "");
        }
Beispiel #2
0
        public void blockBind(ActionMap othermap, string command)
        {
            if (othermap.isObject())
            {
                Util._error("ActionMap::blockBind - \"" + othermap + "\" is not an object!");
                return;
            }
            string bind = othermap.getBinding(command);

            if (bind != "")
            {
                this.bind(Util.getField(bind, 0), Util.getField(bind, 1), "");
            }
        }
Beispiel #3
0
 public void copyBind(ActionMap otherMap, string command)
 {
     if (otherMap.isObject())
         {
         Util._error("ActionMap::copyBind - \"" + otherMap + "\" is not an object!");
         return;
         }
     string bind = otherMap.getBinding(command);
     if (bind == "")
         return;
     string device = Util.getField(bind, 0);
     string action = Util.getField(bind, 1);
     string flags = otherMap.isInverted(device, action) ? "SDI" : "SD";
     string deadzone = otherMap.getDeadZone(device, action);
     float scale = otherMap.getScale(device, action);
     this.bind(device, action, flags, deadzone, scale.AsString(), command);
 }
Beispiel #4
0
        public void copyBind(ActionMap otherMap, string command)
        {
            if (otherMap.isObject())
            {
                Util._error("ActionMap::copyBind - \"" + otherMap + "\" is not an object!");
                return;
            }
            string bind = otherMap.getBinding(command);

            if (bind == "")
            {
                return;
            }
            string device   = Util.getField(bind, 0);
            string action   = Util.getField(bind, 1);
            string flags    = otherMap.isInverted(device, action) ? "SDI" : "SD";
            string deadzone = otherMap.getDeadZone(device, action);
            float  scale    = otherMap.getScale(device, action);

            this.bind(device, action, flags, deadzone, scale.AsString(), command);
        }