Fix Android keycode translation and duplicate key constants (#3733)

* Fix Android keycode translation

* Simplify code a bit

* Rename KEYCODE_MAPPED_NUM to KEYCODE_MAP_SIZE

* Fix KEY_R and KEY_MENU duplicate

* Update raylib_api.* by CI

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Alexandre Almeida 2024-01-20 17:22:33 -03:00 committed by GitHub
parent 192f7f1b29
commit 5c25913e09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 186 additions and 13 deletions

View file

@ -2069,7 +2069,7 @@
},
{
"name": "KEY_MENU",
"value": 82,
"value": 5,
"description": "Key: Android menu button"
},
{

View file

@ -2069,7 +2069,7 @@ return {
},
{
name = "KEY_MENU",
value = 82,
value = 5,
description = "Key: Android menu button"
},
{

View file

@ -717,7 +717,7 @@ Enum 03: KeyboardKey (110 values)
Value[KEY_KP_ENTER]: 335
Value[KEY_KP_EQUAL]: 336
Value[KEY_BACK]: 4
Value[KEY_MENU]: 82
Value[KEY_MENU]: 5
Value[KEY_VOLUME_UP]: 24
Value[KEY_VOLUME_DOWN]: 25
Enum 04: MouseButton (7 values)

View file

@ -437,7 +437,7 @@
<Value name="KEY_KP_ENTER" integer="335" desc="Key: Keypad Enter" />
<Value name="KEY_KP_EQUAL" integer="336" desc="Key: Keypad =" />
<Value name="KEY_BACK" integer="4" desc="Key: Android back button" />
<Value name="KEY_MENU" integer="82" desc="Key: Android menu button" />
<Value name="KEY_MENU" integer="5" desc="Key: Android menu button" />
<Value name="KEY_VOLUME_UP" integer="24" desc="Key: Android volume up button" />
<Value name="KEY_VOLUME_DOWN" integer="25" desc="Key: Android volume down button" />
</Enum>