|
From: kosmirror <kos...@us...> - 2025-06-22 23:58:39
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "A pseudo Operating System for the Dreamcast.".
The branch, master has been updated
via a3d0467bcb2659e44ce7cbeef6e900bb6f33cc62 (commit)
from 3de8ac8f710ab4456c5abe5230c6615074fadb4f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a3d0467bcb2659e44ce7cbeef6e900bb6f33cc62
Author: QuzarDC <qu...@co...>
Date: Thu Jun 19 04:28:09 2025 -0400
Map keyboard 'return' key to CR not LF.
This was a regression in the new API from the start in 2012.
By mapping LF to 'return' (0x28, the 'enter' key in the main
block of keys) it meant that there was no way to send a return
on keyboards that lacked a numpad.
This change rolls us back to the mapping that had always been
used in the older API. It seems that the issue had not been
encountered or noted in large part because the old API's mapping
had been maintained in code until #984 where I removed them for
only differing in this one character code from the standard US
keyboard. The old API is still what was backing conio/kosh and
the change made them difficult to use.
Of course it's still possible for the user to distinguish between
the keys if they'd like, and these mappings only apply to using
our built-in ASCII translation.
-----------------------------------------------------------------------
Summary of changes:
kernel/arch/dreamcast/hardware/maple/keyboard.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/kernel/arch/dreamcast/hardware/maple/keyboard.c b/kernel/arch/dreamcast/hardware/maple/keyboard.c
index 7241bc71..cfa087ef 100644
--- a/kernel/arch/dreamcast/hardware/maple/keyboard.c
+++ b/kernel/arch/dreamcast/hardware/maple/keyboard.c
@@ -110,7 +110,7 @@ static const kbd_keymap_internal_t keymaps[] = {
'm', 'n', 'o', 'p', 'q', 'r', 's', 't', /* 0x10 - 0x17 */
'u', 'v', 'w', 'x', 'y', 'z', '1', '2', /* 0x18 - 0x1F */
'3', '4', '5', '6', '7', '8', '9', '0', /* 0x20 - 0x27 */
- 10, 27, 8, 9, ' ', '-', '^', '@', /* 0x28 - 0x2F */
+ 13, 27, 8, 9, ' ', '-', '^', '@', /* 0x28 - 0x2F */
'[', 0, ']', ';', ':', 0, ',', '.', /* 0x30 - 0x37 */
'/', 0, 0, 0, 0, 0, 0, 0, /* 0x38 - 0x3F */
0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 - 0x47 */
@@ -160,7 +160,7 @@ static const kbd_keymap_internal_t keymaps[] = {
'm', 'n', 'o', 'p', 'q', 'r', 's', 't', /* 0x10 - 0x17 */
'u', 'v', 'w', 'x', 'y', 'z', '1', '2', /* 0x18 - 0x1F */
'3', '4', '5', '6', '7', '8', '9', '0', /* 0x20 - 0x27 */
- 10, 27, 8, 9, ' ', '-', '=', '[', /* 0x28 - 0x2F */
+ 13, 27, 8, 9, ' ', '-', '=', '[', /* 0x28 - 0x2F */
']', '\\', 0, ';', '\'', '`', ',', '.', /* 0x30 - 0x37 */
'/', 0, 0, 0, 0, 0, 0, 0, /* 0x38 - 0x3F */
0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 - 0x47 */
@@ -200,7 +200,7 @@ static const kbd_keymap_internal_t keymaps[] = {
'm', 'n', 'o', 'p', 'q', 'r', 's', 't', /* 0x10 - 0x17 */
'u', 'v', 'w', 'x', 'y', 'z', '1', '2', /* 0x18 - 0x1F */
'3', '4', '5', '6', '7', '8', '9', '0', /* 0x20 - 0x27 */
- 10, 27, 8, 9, ' ', '-', '=', '[', /* 0x28 - 0x2F */
+ 13, 27, 8, 9, ' ', '-', '=', '[', /* 0x28 - 0x2F */
']', '\\', '#', ';', '\'', '`', ',', '.', /* 0x30 - 0x37 */
'/', 0, 0, 0, 0, 0, 0, 0, /* 0x38 - 0x3F */
0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 - 0x47 */
@@ -256,7 +256,7 @@ static const kbd_keymap_internal_t keymaps[] = {
'm', 'n', 'o', 'p', 'q', 'r', 's', 't', /* 0x10 - 0x17 */
'u', 'v', 'w', 'x', 'z', 'y', '1', '2', /* 0x18 - 0x1F */
'3', '4', '5', '6', '7', '8', '9', '0', /* 0x20 - 0x27 */
- 10, 27, 8, 9, ' ', 0xdf, '\'', 0xfc, /* 0x28 - 0x2F */
+ 13, 27, 8, 9, ' ', 0xdf, '\'', 0xfc, /* 0x28 - 0x2F */
'+', '\\', '#', 0xf6, 0xe4, '^', ',', '.', /* 0x30 - 0x37 */
'-', 0, 0, 0, 0, 0, 0, 0, /* 0x38 - 0x3F */
0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 - 0x47 */
@@ -312,7 +312,7 @@ static const kbd_keymap_internal_t keymaps[] = {
',', 'n', 'o', 'p', 'a', 'r', 's', 't', /* 0x10 - 0x17 */
'u', 'v', 'z', 'x', 'y', 'w', '&', 0xe9, /* 0x18 - 0x1F */
'\"', '\'', '(', '-', 0xe8, '_', 0xe7, 0xe0, /* 0x20 - 0x27 */
- 10, 27, 8, 9, ' ', ')', '=', '^', /* 0x28 - 0x2F */
+ 13, 27, 8, 9, ' ', ')', '=', '^', /* 0x28 - 0x2F */
'$', 0, '*', 'm', 0xf9, 0xb2, ';', ':', /* 0x30 - 0x37 */
'!', 0, 0, 0, 0, 0, 0, 0, /* 0x38 - 0x3F */
0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 - 0x47 */
@@ -377,7 +377,7 @@ static const kbd_keymap_internal_t keymaps[] = {
'm', 'n', 'o', 'p', 'q', 'r', 's', 't', /* 0x10 - 0x17 */
'u', 'v', 'w', 'x', 'y', 'z', '1', '2', /* 0x18 - 0x1F */
'3', '4', '5', '6', '7', '8', '9', '0', /* 0x20 - 0x27 */
- 10, 27, 8, 9, ' ', '\'', 0xa1, '`', /* 0x28 - 0x2F */
+ 13, 27, 8, 9, ' ', '\'', 0xa1, '`', /* 0x28 - 0x2F */
'+', 0, 0xe7, 0xf1, 0xb4, 0xba, ',', '.', /* 0x30 - 0x37 */
'-', 0, 0, 0, 0, 0, 0, 0, /* 0x38 - 0x3F */
0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 - 0x47 */
hooks/post-receive
--
A pseudo Operating System for the Dreamcast.
|