More fixes ported from fdsfgsfds' fork

This commit is contained in:
Colton G. Rushton 2020-05-10 00:05:33 -03:00 committed by GitHub
parent fdd9df2fa7
commit 6dc027226c
1 changed files with 2 additions and 2 deletions

View File

@ -131,8 +131,8 @@ static void gfx_sdl_init(void) {
}
for (size_t i = 0; i < sizeof(scancode_rmapping_nonextended) / sizeof(scancode_rmapping_nonextended[0]); i++) {
inverted_scancode_table[scancode_rmapping_extended[i][0]] = inverted_scancode_table[scancode_rmapping_extended[i][1]];
inverted_scancode_table[scancode_rmapping_extended[i][1]] += 0x100;
inverted_scancode_table[scancode_rmapping_nonextended[i][0]] = inverted_scancode_table[scancode_rmapping_nonextended[i][1]];
inverted_scancode_table[scancode_rmapping_nonextended[i][1]] += 0x100;
}
}