Skip to content

Commit

Permalink
[FC] Disable KB with F9+F10 & Fix P1-D1 state in AV-FC mode
Browse files Browse the repository at this point in the history
This allow to navigate the Everdrive menu
  • Loading branch information
darthcloud committed Nov 3, 2023
1 parent ebd6572 commit 657d0f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main/adapter/wired/npiso.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ static const struct npiso_kb_key_to_matrix npiso_kb_key_to_matrix[KBM_MAX] = {
/* KB_F1, KB_F2, KB_F3, KB_F4, KB_F5, KB_F6, KB_F7, KB_F8 */
{7, 0, P2_D1_MASK}, {6, 0, P2_D1_MASK}, {5, 0, P2_D1_MASK}, {4, 0, P2_D1_MASK}, {3, 0, P2_D1_MASK}, {2, 0, P2_D1_MASK}, {1, 0, P2_D1_MASK}, {0, 0, P2_D1_MASK},
/* KB_F9, KB_F10, KB_F11, KB_F12, KB_PSCREEN, KB_SCROLL, KB_PAUSE, KB_INSERT */
{0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {8, 1, P2_D4_MASK},
{0, 0, P2_D1_MASK | P2_D2_MASK | P2_D3_MASK | P2_D4_MASK}, {0, 1, P2_D1_MASK | P2_D2_MASK | P2_D3_MASK | P2_D4_MASK}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {8, 1, P2_D4_MASK},
/* KB_HOME, KB_PAGEUP, KB_DEL, KB_END, KB_PAGEDOWN, KB_NUMLOCK, KB_KP_DIV, KB_KP_MULTI */
{8, 0, P2_D1_MASK}, {0, 0, 0}, {8, 1, P2_D3_MASK}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0},

Expand Down
5 changes: 5 additions & 0 deletions main/wired/npiso_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,11 @@ void npiso_init(uint32_t package)
gpio_mask[1][NPISO_D0] = P2_D1_MASK;
}
}
else {
if (dev_type[0] == DEV_FC_KB) {
gpio_mask[0][NPISO_D0] |= P1_D1_MASK;
}
}

if (dev_type[1] == DEV_SFC_SNES_MULTITAP) {
intexc_alloc_iram(ETS_GPIO_INTR_SOURCE, 19, npiso_sfc_snes_5p_isr);
Expand Down

0 comments on commit 657d0f5

Please sign in to comment.