PS2KB fix mapping KB_HOME
This commit is contained in:
@ -71,6 +71,7 @@ static uint8_t normalmap[0x100] = {
|
|||||||
[0xcb] KB_LEFT, [0xcd] KB_RIGHT,
|
[0xcb] KB_LEFT, [0xcd] KB_RIGHT,
|
||||||
[0x97] KB_HOME, [0xcf] KB_END,
|
[0x97] KB_HOME, [0xcf] KB_END,
|
||||||
[0xd2] KB_INSERT, [0xd3] KB_DELETE,
|
[0xd2] KB_INSERT, [0xd3] KB_DELETE,
|
||||||
|
[0xc7] KB_HOME,
|
||||||
};
|
};
|
||||||
|
|
||||||
static uint8_t shiftmap[256] = {
|
static uint8_t shiftmap[256] = {
|
||||||
@ -92,6 +93,7 @@ static uint8_t shiftmap[256] = {
|
|||||||
[0xcb] KB_LEFT, [0xcd] KB_RIGHT,
|
[0xcb] KB_LEFT, [0xcd] KB_RIGHT,
|
||||||
[0x97] KB_HOME, [0xcf] KB_END,
|
[0x97] KB_HOME, [0xcf] KB_END,
|
||||||
[0xd2] KB_INSERT, [0xd3] KB_DELETE,
|
[0xd2] KB_INSERT, [0xd3] KB_DELETE,
|
||||||
|
[0xc7] KB_HOME,
|
||||||
};
|
};
|
||||||
|
|
||||||
static uint8_t ctlmap[256] =
|
static uint8_t ctlmap[256] =
|
||||||
@ -110,6 +112,7 @@ static uint8_t ctlmap[256] =
|
|||||||
[0xcb] KB_LEFT, [0xcd] KB_RIGHT,
|
[0xcb] KB_LEFT, [0xcd] KB_RIGHT,
|
||||||
[0x97] KB_HOME, [0xcf] KB_END,
|
[0x97] KB_HOME, [0xcf] KB_END,
|
||||||
[0xd2] KB_INSERT, [0xd3] KB_DELETE,
|
[0xd2] KB_INSERT, [0xd3] KB_DELETE,
|
||||||
|
[0xc7] KB_HOME,
|
||||||
};
|
};
|
||||||
|
|
||||||
int32_t ps2kb_intr(void) {
|
int32_t ps2kb_intr(void) {
|
||||||
|
Reference in New Issue
Block a user