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:
parent
192f7f1b29
commit
5c25913e09
6 changed files with 186 additions and 13 deletions
|
@ -2069,7 +2069,7 @@
|
|||
},
|
||||
{
|
||||
"name": "KEY_MENU",
|
||||
"value": 82,
|
||||
"value": 5,
|
||||
"description": "Key: Android menu button"
|
||||
},
|
||||
{
|
||||
|
|
|
@ -2069,7 +2069,7 @@ return {
|
|||
},
|
||||
{
|
||||
name = "KEY_MENU",
|
||||
value = 82,
|
||||
value = 5,
|
||||
description = "Key: Android menu button"
|
||||
},
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue