• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Virtual Keys

 
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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;
 
Remember to always leap before you look. But always take the time to smell the tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic