MCPcopy Create free account
hub / github.com/HumbleUI/JWM / EventKey

Method EventKey

shared/java/EventKey.java:13–19  ·  view source on GitHub ↗
(int keyCode, boolean isPressed, int modifiers, int keyLocation)

Source from the content-addressed store, hash-verified

11 @ApiStatus.Internal public final KeyLocation _location;
12
13 @ApiStatus.Internal
14 public EventKey(int keyCode, boolean isPressed, int modifiers, int keyLocation) {
15 _key = Key.makeFromInt(keyCode);
16 _isPressed = isPressed;
17 _modifiers = modifiers;
18 _location = KeyLocation.makeFromInt(keyLocation);
19 }
20
21 public boolean isModifierDown(KeyModifier modifier) {
22 return (_modifiers & modifier._mask) != 0;

Callers

nothing calls this directly

Calls 2

makeFromIntMethod · 0.95
makeFromIntMethod · 0.95

Tested by

no test coverage detected