Shop OBEX P1 Docs P2 Docs Learn Events
Keyboard Sensing Passive/Modifier Keys...ALT, Shift, CTRL..etc — Parallax Forums

Keyboard Sensing Passive/Modifier Keys...ALT, Shift, CTRL..etc

CassLanCassLan Posts: 586
edited 2010-01-13 06:15 in Propeller 1
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)

·

Comments

  • KyeKye Posts: 2,200
    edited 2010-01-11 18:15
    I have the type of driver your looking for. Its not public however, email me for it.

    Thanks,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nyamekye,
  • AribaAriba Posts: 2,690
    edited 2010-01-11 20:54
    CassLan

    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).
  • VIRANDVIRAND Posts: 656
    edited 2010-01-13 06:15
    Whoever designed the PC keyboard was ... uh ... "best-heard". devil.gif
    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
Sign In or Register to comment.