-
-
Notifications
You must be signed in to change notification settings - Fork 33
Key Event
wagyourtail edited this page Jun 28, 2020
·
5 revisions
This Event is fired whenever a key is pressed/released, the KEY UP
KEY DOWN
and KEY UP/DOWN
events are subsets of this event that are passed only if the key matches the set one.
this event passes some arguments to javascript which can be accessed by the ArrayList<String, Object> global called args. a list of these properties is:
-
key:
1.0.7+
String keyname.-
1.0.6
: The KeyCode class (net/minecraft/class_3675$class_306) aka (net/minecraft/client/util/InputUtil$KeyCode).
-
- action: An integer representation of whether the key is being pressed or released.
example args.get("key") //returns the name of the key