fix scaling issues

This commit is contained in:
2026-03-03 11:35:29 -05:00
parent cde77e6ae6
commit bae74d7a96
9 changed files with 208 additions and 113 deletions

View File

@@ -13,6 +13,8 @@ enum {
kVK_Home = 0x73, kVK_End = 0x77,
kVK_Command = 0x37, kVK_Shift = 0x38,
kVK_RightShift = 0x3C, kVK_RightCommand = 0x36,
kVK_ANSI_Equal = 0x18, kVK_ANSI_Minus = 0x1B,
kVK_ANSI_0 = 0x1D,
};
static uint8_t macos_keycode_to_pkey(uint16_t keycode) {
@@ -32,6 +34,9 @@ static uint8_t macos_keycode_to_pkey(uint16_t keycode) {
case kVK_DownArrow: return PKEY_DOWN;
case kVK_Home: return PKEY_HOME;
case kVK_End: return PKEY_END;
case kVK_ANSI_Equal: return PKEY_EQUAL;
case kVK_ANSI_Minus: return PKEY_MINUS;
case kVK_ANSI_0: return PKEY_0;
default: return 0;
}
}