Keyboard Sensing Passive/Modifier Keys...ALT, Shift, CTRL..etc
CassLan
Posts: 586
Has anyone had any experience sensing the state of these·Modifier Keys by themselves with any of the KB Drivers for the Prop?
The question comes up for me as I'm trying to sense the state of the ALT key to trigger a Menu.
I did a project way back when and had studied the PS2 protocol a bit, I know its in there, but not sure if that ability is in any of the public KB drivers.
I have been using a seperate KB and Mouse Driver, and I should probably switch over to the combo driver just as not to waste a cog.
Any ideas or help in this matter is much appreciated.
Rick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NYC Area Prop Club
Prop Forum Search (Via Google)
·
The question comes up for me as I'm trying to sense the state of the ALT key to trigger a Menu.
I did a project way back when and had studied the PS2 protocol a bit, I know its in there, but not sure if that ability is in any of the public KB drivers.
I have been using a seperate KB and Mouse Driver, and I should probably switch over to the combo driver just as not to waste a cog.
Any ideas or help in this matter is much appreciated.
Rick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NYC Area Prop Club
Prop Forum Search (Via Google)
·
Comments
Thanks,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
I have hacked the original Keyboard driver a bit, so that it sends now a $F4 for Left-Alt pressed and $F6 for released.
I have not invested a lot of time, so there is perhaps a nicer solution than this little hack.
Look in the Assembly section where the '////// comments are for the 3 modified lines.
Andy
Edit: If you use it, then please add an item in the revision history at begin (I forgot it).
Well I guess IBM never liked ASCII or ANSI or EarthText.
Their mainframe text format is Extended Binary Coded Decimal Information Code (EBCDIC).
Proprietary Designs: For when you want to consume the best pile of bovine excrement that a ton of money can buy.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
VIRAND, If you spent as much time SPINNING as you do Trolling the Forums,
you'd have tons of awesome code to post! (Note to self)
Post Edited (VIRAND) : 1/13/2010 6:25:01 AM GMT