Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 04-15-2003, 10:18 AM   #1
Member (8 bit)
 
9600baud's Avatar
 
Join Date: Aug 2002
Posts: 246
C and PS/2 Keyboards

Hello,

i need to know how to start building a way to communicate with the keyboard (Ie set Caps Lock on/off, store keystrings etc...) I am stumped, please shed some light on this issue, thank you!
9600baud is offline   Reply With Quote
Old 04-15-2003, 10:51 PM   #2
Member (7 bit)
 
LoveJones's Avatar
 
Join Date: Sep 2002
Posts: 93
I've only really worked with Keyboard data and manipulation on the assembly level. It's different for different architectures.

Usually getting information from the keyboard includes an interrupt and a data queue which holds the keystroke, along with output. You could easily manipulate an assembly function to put anything out to the Keyboard Output that you wanted, so in theory you should have no trouble in C.

I'd just Google around bro, depending on the architecture you are making the program for.
LoveJones is offline   Reply With Quote
Old 04-24-2003, 10:47 PM   #3
Member (12 bit)
 
Paul Victorey's Avatar
 
Join Date: Mar 1999
Location: MN or WI
Posts: 3,017
It also depends what OS you want to run under. In DOS, it was quite easy to write a keystroke handler, but with Windows, you'll need to use its functions, as it won't allow you to touch the hardware directly. WinAPI and DirectInput can help you there.

Under other OSs, you need to look at whatever that OS demands.
Paul Victorey is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:57 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2