This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reg:Scan code in java  RSS feed

 
Jonny checker
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
while adding keylistener in java it gives the keycode, but actually i need scan code how to get the scancode as similar to vc++(MFC) in java.Because im working in multiple languages different keyboard i have to support.if keycode used so may problem arises. to sove the problem, how can i get the scan code in java
 
Norm Radder
Ranch Foreman
Posts: 2212
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is scan code? How does it relate to keycode? Is there a translation from one to the other?
[ June 18, 2008: Message edited by: Norm Radder ]
 
Jonny checker
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
scan code is a value based in the position of the key in the keyboard. scancode relates th the hardware specific
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!