|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (8 bit)
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! |
|
|
|
|
|
#2 |
|
Member (7 bit)
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. |
|
|
|
|
|
#3 |
|
Member (12 bit)
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. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|