Skip to content

update raylib to 5.5#1

Open
solamint wants to merge 2414 commits into
Encore-Developers:masterfrom
raysan5:master
Open

update raylib to 5.5#1
solamint wants to merge 2414 commits into
Encore-Developers:masterfrom
raysan5:master

Conversation

@solamint

@solamint solamint commented Jun 8, 2025

Copy link
Copy Markdown

No description provided.

CrackedPixel and others added 30 commits April 12, 2026 10:23
* update cmake for PLATFORM_MEMORY

* remove opengl example for memory platform

* update for winmm and cross compile
* Adjusting build.zig to run on 0.16.0

* changing version to 6
Checking if lenght equals 0 inside the if statement is not necessary.
* Update build-windows script

* Use vswhere in build-windows script
szarta and others added 30 commits June 24, 2026 17:40
…mepadName() (#5937)

* [rcore] Bounds-check gamepad index in GetGamepadAxisCount() and GetGamepadName()

Both public getters indexed CORE.Input.Gamepad.axisCount[gamepad] / .name[gamepad]
with an unvalidated gamepad argument -- an out-of-bounds read for gamepad < 0 or
gamepad >= MAX_GAMEPADS. Every sibling gamepad accessor (IsGamepadAvailable,
IsGamepadButton*, GetGamepadAxisMovement) already guards the index; add the same
check, returning a safe default (0 / NULL).

* Refactor GetGamepadName/GetGamepadAxisCount to single-return pattern

---------

Co-authored-by: Brandon Arrendondo <brandon.arrendondo@bissell.com>
…5938)

Commit 3edfe19 added a `gamepad >= 0` lower-bound check to
GetGamepadAxisCount() and GetGamepadName(), but six sibling functions
were left with only the upper-bound check (`gamepad < MAX_GAMEPADS`).
A negative signed int passes that check and triggers out-of-bounds
access on CORE.Input.Gamepad.ready[gamepad] and related arrays (UB in C).

Apply the same `(gamepad >= 0) &&` guard added in 3edfe19 to:
- IsGamepadAvailable
- IsGamepadButtonPressed
- IsGamepadButtonDown
- IsGamepadButtonReleased
- IsGamepadButtonUp
- GetGamepadAxisMovement
* Add S-Expression output to rlparser.c

* minor whitespace fix
… -WIP-

The new functions are direct maps of the Texture2D equivalents, they can be useful for a future mapping Texture2D --> Image; an alternative 2d software renderer...
* [rcore] Fix gamepad code using outdated functions

* [rcore] Remove printing available joysticks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.