further work on new SCNKEY
This commit is contained in:
1 parent
183ac3ab87
commit
677e5452a6
11 files changed
+228
-87
No files matched your search
@@ -1,21 +1,23 @@
|
||||
|
||||
//
|
||||
// Work out if normal, shifted, control or Vendor modified keyboard.
|
||||
// Table contains the offsets into keyboard_matrixes that should be used
|
||||
// for different values of the bottom 3 bits of key_bucky_state XXX
|
||||
// Interaction is simple to work out when playing with a C64:
|
||||
// CTRL trumps SHIFT or VENDOR
|
||||
// VENDOR + SHIFT = DOES NOTHING
|
||||
// All 3 does CONTROL
|
||||
// Helper table for determining keyboard matrix decoding table on the C64 keyboard
|
||||
//
|
||||
// When more than one bucky keey is pressed, decoding keys is asking for trouble,
|
||||
// so never allow this.
|
||||
//
|
||||
|
||||
|
||||
#if !CONFIG_SCNKEY_TWW_CTR
|
||||
|
||||
kb_matrix_lookup:
|
||||
|
||||
.byte (__kb_matrix_normal - kb_matrix) // Normal
|
||||
.byte (__kb_matrix_shift - kb_matrix) // SHIFT
|
||||
.byte (__kb_matrix_ctrl - kb_matrix) // CTRL
|
||||
.byte (__kb_matrix_ctrl - kb_matrix) // CTRL + SHIFT
|
||||
.byte (__kb_matrix_vendor - kb_matrix) // VENDOR
|
||||
.byte (__kb_matrix_vendor - kb_matrix) // VENDOR + SHIFT
|
||||
.byte (__kb_matrix_ctrl - kb_matrix) // VENDOR + CTRL
|
||||
.byte (__kb_matrix_ctrl - kb_matrix) // VENDOR + CTRL + SHIFT
|
||||
.byte (__kb_matrix_normal - kb_matrix) // %000 Normal
|
||||
.byte (__kb_matrix_shift - kb_matrix) // %001 SHIFT
|
||||
.byte (__kb_matrix_vendor - kb_matrix) // %010 VENDOR
|
||||
.byte $FF // %011 SHIFT+VENDOR
|
||||
.byte (__kb_matrix_ctrl - kb_matrix) // %100 CTRL
|
||||
.byte $FF // %101 SHIFT+CTRL
|
||||
.byte $FF // %110 VENDOR+CTRL
|
||||
.byte $FF // %111 SHIFT+VENDOR+CTRL
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user