KeyEvent

Page 1 2 3 4 5

Constructors

public KeyEvent(int action, int code) source
public KeyEvent(long downTime, long eventTime, int action, int code, int repeat) source
public KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState) source
public KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode) source
public KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode, int flags) source
public KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode, int flags, int source) source
public KeyEvent(long time, String characters, int deviceId, int flags) source
public KeyEvent(KeyEvent o) source
public KeyEvent(KeyEvent origEvent, long eventTime, int newRepeat) source

Methods

public static KeyEvent changeAction(KeyEvent event, int action) source
public static KeyEvent changeFlags(KeyEvent event, int flags) source
public static KeyEvent changeTimeRepeat(KeyEvent event, long eventTime, int newRepeat) source
public int getDeviceId() source
public int getSource() source
public void setSource(int source) source
public long getEventTime() source
public long getEventTimeNanos() source
public final long getDownTime() source
public final int getAction() source
public final int getKeyCode() source
public final int getRepeatCount() source
public final int getMetaState() source
public final int getModifiers() source
public final int getScanCode() source
public final int getFlags() source
public final String getCharacters() source
public final boolean isCanceled() source
public final boolean isLongPress() source
public final boolean isTracking() source
public final void startTracking() source
public final boolean isSystem() source
public final boolean isShiftPressed() source
public final boolean isAltPressed() source
public final boolean isCtrlPressed() source
public final boolean isMetaPressed() source
public final boolean isFunctionPressed() source
public final boolean isSymPressed() source
public final boolean isCapsLockOn() source
public final boolean isNumLockOn() source
public final boolean hasNoModifiers() source
public final boolean hasModifiers(int modifiers) source
public static boolean metaStateHasNoModifiers(int metaState) source
public static boolean metaStateHasModifiers(int metaState, int modifiers) source
public static int normalizeMetaState(int metaState) source
public static boolean isModifierKey(int keyCode) source
public static boolean isGamepadButton(int keyCode) source
public static boolean isMediaSessionKey(int keyCode) source
public static int getMaxKeyCode() source

Page 1 2 3 4 5


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.