Ambiera Forum

Discussions, Help and Support.

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

samgrady
Registered User
Quote
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.


just_in_case
Moderator
Quote
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.

https://neophyte.cf/assets.html

hope that helps


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






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