3738394041424344
* keystroke is repeated as a result of the user's holding down the key. * * @return the repeat count. */ public int getRepeatCount() { FlagSet flagSet = new FlagSet(getLParam()); return flagSet.getBits(0, 15); }
4748495051525354
* Specifies the scan code. The value depends on the OEM. * * @return scan code. */ public int getScanCode() { FlagSet flagSet = new FlagSet(getLParam()); return flagSet.getBits(16, 23); }
5859606162636465
* key on the numeric keypad. * * @return true, if the key is an extended key; otherwise, it is false. */ public boolean isExtendedKey() { FlagSet flagSet = new FlagSet(getLParam()); return flagSet.getBit(24); }
6869707172737475
* Specifies the context code. * * @return true, if the ALT key is down; otherwise, it is false. */ public boolean isAltPressed() { FlagSet flagSet = new FlagSet(getLParam()); return flagSet.getBit(29); }
7980818283848586
* * @return true, if the key is down before the message is sent; false if the * key is up. */ public boolean getPreviousState() { FlagSet flagSet = new FlagSet(getLParam()); return flagSet.getBit(30); }
8990919293949596
* Specifies the transition state. * * @return true, if the key is being pressed; false if it is being released. */ public boolean getTransitionState() { FlagSet flagSet = new FlagSet(getLParam()); return !flagSet.getBit(31); }