public function addCustomControlMapping(string $input, callable $callable) : void
    {
        if (isset($this->defaultControlMappings[$input]) || isset($this->customControlMappings[$input])) {
            throw new \InvalidArgumentException('Cannot rebind this input');
        }

        $this->customControlMappings[$input] = $callable;
    }
public function addCustomControlMapping(string $input, callable $callable) : void
    {
        if (isset($this->defaultControlMappings[$input]) || isset($this->customControlMappings[$input])) {
            throw new \InvalidArgumentException('Cannot rebind this input');
        }

        $this->customControlMappings[$input] = $callable;
    }
public function addCustomControlMapping ( string $ input , callable $ callable ) : void { if ( isset ( $ this -> defaultControlMappings [ $ input ] ) || isset ( $ this -> customControlMappings [ $ input ] ) ) { throw new \ InvalidArgumentException ( 'Cannot rebind this input' ) ; } $ this -> customControlMappings [ $ input ] = $ callable ; }
Adds a custom control mapping
Adds a custom control mapping