Changeset 8d96947 in avrstuff for kbd/pcw2hid/code/protocol.cpp


Ignore:
Timestamp:
Feb 7, 2023, 9:03:10 PM (16 months ago)
Author:
PulkoMandy <pulkomandy@…>
Branches:
main
Children:
88a38a8
Parents:
110c692
Message:

More untested code for PCW to HID keyboard adapter

  • Use VOTI shared keyboard ID
  • Use standard keyboard descriptor from LUFA demo
  • Don't scan past row 10 of the PCW keyboard (we don't need more)
  • Convert PCW keys to (roughly) corresponding USB HID keycodes

TODO:

  • If shift is pressed, maybe convert f1/3/5/7 to f2/4/6/8
  • Some keys (ab)use F2/4/6/8 keycodes, move them to F9-F12 instead
  • Some keys use "unusual" keycodes (cancel, stop), maybe move to more common ones
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kbd/pcw2hid/code/protocol.cpp

    r110c692 r8d96947  
    7575        do {
    7676                address = scanbyte();
    77         } while ((address < 15) && (kmatrix[15] & 0x80 != 0));
     77        // } while ((address < 15) && ((kmatrix[15] & 0x80) != 0));
     78        } while ((address != 10) && ((kmatrix[15] & 0x80) != 0));
     79        // nothing interesting past row 10, so stop scanning there.
    7880
    7981        return kmatrix;
Note: See TracChangeset for help on using the changeset viewer.