nn.pp.rccore

## Interface IKeyboardMacro.IKeyCode

- All Known Implementing Classes:
    KeyboardMacro.KeyCode
  Enclosing interface:
    IKeyboardMacro

      public static interface IKeyboardMacro.IKeyCode

  This represents a key event. This is part of the keyboard macro implementation.

  A key event can be one of the following:

  - Press a key
  - Release a key
  - A virtual "Delay" event

  Key codes in this event represent a physical key location as defined internally by the KX implementation. In case of a "delay" event, the code represents the milliseconds of the delay.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getCode()` Get the physical key code.
    `boolean` | `isDelay()` Is this a special "delay" event instead of a real key?
    `boolean` | `isPress()` Is the key pressed or released?

- - ### Method Detail

    - #### getCode

          int getCode()

      Get the physical key code.

      This is an internally used physical key code and defined by KX keyboard implementation.

      In case of a "delay" event, this is the number of milliseconds to wait.

      Returns:
        the physical key code

    - #### isPress

          boolean isPress()

      Is the key pressed or released?
      Returns:
        true if pressed, false if released

    - #### isDelay

          boolean isDelay()

      Is this a special "delay" event instead of a real key?
      Returns:
        true if delay, false if a real key

Copyright © 2025 Raritan Inc. All Rights Reserved.