mirror of
https://github.com/RPCS3/rpcs3
synced 2024-11-02 11:45:30 +00:00
cellKb: Clarify cellKbCnvRawCode alphabet conversion
This commit is contained in:
parent
0e32f19de8
commit
c01f0bffde
1 changed files with 6 additions and 5 deletions
|
@ -284,11 +284,12 @@ u16 cellKbCnvRawCode(u32 arrange, u32 mkey, u32 led, u16 rawcode)
|
||||||
|
|
||||||
if (rawcode >= CELL_KEYC_A && rawcode <= CELL_KEYC_Z) // 'A' - 'Z'
|
if (rawcode >= CELL_KEYC_A && rawcode <= CELL_KEYC_Z) // 'A' - 'Z'
|
||||||
{
|
{
|
||||||
rawcode -=
|
if (is_shift != is_caps_lock)
|
||||||
(is_shift)
|
{
|
||||||
? ((led & (CELL_KB_LED_CAPS_LOCK)) ? 0 : 0x20)
|
return rawcode + 0x3D; // Return uppercase if exactly one is active.
|
||||||
: ((led & (CELL_KB_LED_CAPS_LOCK)) ? 0x20 : 0);
|
}
|
||||||
return rawcode + 0x5D;
|
|
||||||
|
return rawcode + 0x5D; // Return lowercase if none or both are active.
|
||||||
}
|
}
|
||||||
if (rawcode >= CELL_KEYC_1 && rawcode <= CELL_KEYC_9) return rawcode + 0x13; // '1' - '9'
|
if (rawcode >= CELL_KEYC_1 && rawcode <= CELL_KEYC_9) return rawcode + 0x13; // '1' - '9'
|
||||||
if (rawcode == CELL_KEYC_0) return 0x30; // '0'
|
if (rawcode == CELL_KEYC_0) return 0x30; // '0'
|
||||||
|
|
Loading…
Reference in a new issue