ZGameEditor Documentation
Community |
KeyPressKeyPressTest keyboard input, and executes a component list if a key is pressed. PropertiesKeysA string of characters for which keypresses will be detected. Use capital letters. To test for the "A"-key just set the value "A". If several characters are set, then the KeyIndex-property will be set to the index of which character was pressed. For instance if keys are set to "QA" then if the Q-key is pressed KeyIndex will have the value 0, and if the A-key is pressed it will have the value 1. Special characters and their meaning: CharCodeThis is a alternate way of specifying which key to detect. Example values and their meaning: RepeatDelayA delay in seconds for which a keypress is repeated. OnPressedThe list of components that is executed when a keypress is detected. KeyIndexSee the description for Keys-property. |