• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Virtual Keys

 
Paul Keohan
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The non-numeric keys (*, /, +, ., -) on the numeric keypad are known as what in the KeyEvent class? VK_SLASH etc. represents the value for the / on the main keypad but not the numeric keypad.
Thanks.

Paul
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Numpad constants
VK_MULTIPLY = 0x6A;
VK_ADD = 0x6B;
VK_SEPARATER = 0x6C; //the "slash" on the numpad
VK_SUBTRACT = 0x6D;
VK_DECIMAL = 0x6E;
VK_DIVIDE = 0x6F;
VK_DELETE = 0x7F;
VK_NUM_LOCK = 0x90;
VK_SCROLL_LOCK = 0x91;
Other related constants:
VK_SLASH = 0x2F;
VK_BACK_SLASH = 0x5C;
VK_PERIOD = 0x2E;
VK_MINUS = 0x2D;
VK_PLUS = 0x0209;
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic