User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 426,455 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,249 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser: Programming Forums
Views: 5397 | Replies: 4
Reply
Join Date: May 2005
Posts: 7
Reputation: Koteswar is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Koteswar's Avatar
Koteswar Koteswar is offline Offline
Newbie Poster

How to convert Scancode to ASCII.

  #1  
Jun 7th, 2005
Hi,
Could anyone tell me, how to convert scancode to an equivalent ASCII char. in C language.


Vijay.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2005
Posts: 462
Reputation: winbatch is on a distinguished road 
Rep Power: 4
Solved Threads: 18
winbatch's Avatar
winbatch winbatch is offline Offline
Posting Pro in Training

Re: How to convert Scancode to ASCII.

  #2  
Jun 7th, 2005
Maybe I'm dumb - what's scancode?
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 199
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: How to convert Scancode to ASCII.

  #3  
Jun 8th, 2005
It's the hardware code returned from a keyboard.
I used to have a mapping table somewhere but I doubt it would still be valid as it was for old XT keyboards (the ones with the function keys on the left side and no separate cursor keys).

Here's an article from Microsoft that might provide some help if you're writing for Windows: http://www.microsoft.com/whdc/device...kscan-map.mspx
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote  
Join Date: May 2005
Posts: 7
Reputation: Koteswar is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Koteswar's Avatar
Koteswar Koteswar is offline Offline
Newbie Poster

Re: How to convert Scancode to ASCII.

  #4  
Jun 8th, 2005
Hi,
Thank you for your reply. I have seen the link what you mentioned. I was told by some other people too, that the only way is to map both by creating a table of scan code & ASCII codes. I am actually looking for the table , which is already created, so that I can use in my code.

I am working on Linux system, so I would like to know whether any such table existing with the Linux source.

Thank you.
Vijay.
Reply With Quote  
Join Date: Jun 2007
Posts: 26
Reputation: sj87 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
sj87 sj87 is offline Offline
Light Poster

Re: How to convert Scancode to ASCII.

  #5  
Jun 21st, 2007
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C Forum

All times are GMT -4. The time now is 3:24 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC