diff options
| author | Ray <[email protected]> | 2023-01-02 17:06:52 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-01-02 17:06:52 +0100 |
| commit | 62f63f9e485fdffa1e981ae4ae58f5eb8ccfff8e (patch) | |
| tree | 501d0752cea2c0338d308923d8e38d3aa4952ae8 /src/raylib.h | |
| parent | 0ccc1d3686f7c9eeafd88c7385d908b23812231e (diff) | |
| download | raylib-62f63f9e485fdffa1e981ae4ae58f5eb8ccfff8e.tar.gz raylib-62f63f9e485fdffa1e981ae4ae58f5eb8ccfff8e.zip | |
REVIEWED: Avoid possible gamepad index as `-1` #2839
WARNING: It could require further review of `GamepadThread()` function where `js_event gamepadEvent.number` detecting current pressed button could generate a missmatch with index 0 (reserved for button unknow). Or maybe `0` could just be `GAMEPAD_BUTTON_NONE`? In that case, consistency with other inputs should be carefully considered...
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/raylib.h b/src/raylib.h index 5a230a3a..1c3f7766 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -716,7 +716,7 @@ typedef enum { // Material map index typedef enum { - MATERIAL_MAP_ALBEDO = 0, // Albedo material (same as: MATERIAL_MAP_DIFFUSE) + MATERIAL_MAP_ALBEDO = 0, // Albedo material (same as: MATERIAL_MAP_DIFFUSE) MATERIAL_MAP_METALNESS, // Metalness material (same as: MATERIAL_MAP_SPECULAR) MATERIAL_MAP_NORMAL, // Normal material MATERIAL_MAP_ROUGHNESS, // Roughness material @@ -862,7 +862,7 @@ typedef enum { } BlendMode; // Gesture -// NOTE: It could be used as flags to enable only some gestures +// NOTE: Provided as bit-wise flags to enable only desired gestures typedef enum { GESTURE_NONE = 0, // No gesture GESTURE_TAP = 1, // Tap gesture |
