public function addKeyPress($code, $keyCodes = array(), $priority = 5, $inline = false) {
        $keyPress = new KeyPress();
        $keyPress->setCode($code)
                 ->setKeyCodes($keyCodes)
                 ->setPriority($priority)
                 ->setInline($inline);
        $this->builder->addEvent($keyPress);
        return $this;
    }
public function addKeyPress($code, $keyCodes = array(), $priority = 5, $inline = false) {
        $keyPress = new KeyPress();
        $keyPress->setCode($code)
                 ->setKeyCodes($keyCodes)
                 ->setPriority($priority)
                 ->setInline($inline);
        $this->builder->addEvent($keyPress);
        return $this;
    }
public function addKeyPress ( $ code , $ keyCodes = array ( ) , $ priority = 5 , $ inline = false ) { $ keyPress = new KeyPress ( ) ; $ keyPress -> setCode ( $ code ) -> setKeyCodes ( $ keyCodes ) -> setPriority ( $ priority ) -> setInline ( $ inline ) ; $ this -> builder -> addEvent ( $ keyPress ) ; return $ this ; }
Adds a KeyPress event to the ManiaScript.
@param string $code The code to be executed.
@param array $keyCodes The codes of the keys on which the code should be executed.
@param int $priority The priority, 0 for most important, bigger for less important.
@param boolean $inline Whether this event is handled inline, i.e. without wrapping function.
@return $this Implementing fluent interface.
Adds a KeyPress event to the ManiaScript .