A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Java in General
Author
Virtual Keys
Paul Keohan
Ranch Hand
Joined: Mar 15, 2000
Posts: 411
posted
May 22, 2001 15:59:00
0
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
Joined: Sep 29, 2000
Posts: 8521
posted
May 23, 2001 08:57:00
0
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;
"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Virtual Keys
Similar Threads
Java Calculator
Java Robot - how to press the keypad enter key
Foreign language
Right Click on Snow Leopard
IntelliJ IDEA arrow navigation does not work with numeric keypad arrow keys
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter