Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
.prototype.onKeyEvent = function(key, pressed)

Registered User
2022-08-01 05:20:17

How make or something, i trying make my behavior but can't understand how keyEvent work plz help me.

2022-08-01 11:38:59

you need to use a keyboard input prototype in the behaviors. I recommend you checking the custom behaviors by users, there are many that uses the keyboard input. All you need to is to provide a key value and if it is pressed down or not. There are many extensions on my website, you can check them out, you can check the cheatsheat behavior or any other behavior that deals with the keypress, just download them and look into the source.

hope that helps

Create reply:

Posted by: (you are not logged in)

Enter the missing letter in: "Internation?l" (you are not logged in)




Possible Codes

Feature Code
Link [url] [/url]
Bold [b]bold text[/b]
Image [img][/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]



Copyright© 2020 Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact