new SCNKEY can now use joystick port 1

This commit is contained in:
FeralChild64 committed 2019-10-14 19:58:59 +02:00
1 parent 677e5452a6
commit 643de3a8b7
6 files changed
+111 -24

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
//
// Matrix for retrieving C64 joystick status and inject is as keyboard event
//
#if !CONFIG_SCNKEY_TWW_CTR && (CONFIG_JOY1_CURSOR || CONFIG_JOY2_CURSOR)
kb_matrix_joy_status:
.byte %00001110 // up
.byte %00001101 // down
.byte %00001011 // left
.byte %00000111 // right
kb_matrix_joy_keytab_idx:
.byte $07 // up
.byte $07 // down
.byte $02 // left
.byte $02 // right
kb_matrix_joy_keytab_lo:
.byte <__kb_matrix_shift // up
.byte <__kb_matrix_normal // down
.byte <__kb_matrix_shift // left
.byte <__kb_matrix_normal // right
kb_matrix_joy_keytab_hi:
.byte >__kb_matrix_shift // up
.byte >__kb_matrix_normal // down
.byte >__kb_matrix_shift // left
.byte >__kb_matrix_normal // right
#endif