Ray
7262be85fd
Minor format tweaks
5 months ago
Karim Ahmed
32960af1dc
Fixed:
Added CMake support for SDL3.
Now supports including SDL2 or SDL3 as a subdirectory within the project. The system will first check for SDL3, then SDL2. If neither is found, it will attempt find_package(SDL3), followed by find_package(SDL2). If all these checks fail, the process will terminate with an error.
5 months ago
Didas72
36364192d5
Fixes GetWindowHandle returning a bad handle under Linux X11
5 months ago
jonathandw743
79c29cbe24
fixed compile error for PLATFORM sdl
6 months ago
Ray
44f670899c
REVIEWED: Avoid `rtext` dependency on `rcore_desktop_sdl` #4959
6 months ago
Ray
59bcf680aa
Code gardening...
7 months ago
Ray
533c12c386
Small security tweaks
7 months ago
alqeeu
51958d6e2c
changed `RGFW_window_eventWait` timeout to -1
7 months ago
M374LX
6eeaf1dd5b
Update RGFW to 1.7.5-dev
7 months ago
M374LX
bc2b2864e0
RGFW: fix Escape always closing the window
7 months ago
M374LX
3418172617
Update comments
7 months ago
M374LX
a9525bfbc2
Update RGFW to 1.7
7 months ago
Ray
913c236487
REVIEWED: `MAX_GAMEPAD_AXES`
7 months ago
M374LX
c0cf57f8f0
RGFW backend: add missing Right Control key
7 months ago
Padmadev D
b6daa48a9c
Update rcore_android.c
corrected coding conventions.
7 months ago
Padmadev D
5da2d10118
Update rcore_android.c
Bug Fix Update
Code to Ignore Hovering Inputs Completely
7 months ago
Ray
8c99a508c6
REVIEWED: `WindowSizeCallback()`, GLFW
It is called on window minification and setting internal width/height to 0, that can break things
7 months ago
Gavin Rohrer
10478ff756
Revert GLFW_SCALE_FRAMEBUFFER to pre GLFW 4.3 behavior
8 months ago
AndrewHamel111
fdb92b373b
Warning to direct users to appropriate function
8 months ago
Ray
80fcca4155
Update rcore_desktop_glfw.c
8 months ago
Ray
cc5739a6d7
REVIEWED: Some PRs formating
8 months ago
Eike Decker
1c4aa1378f
[rcore][SDL2] First touch position is overwritten with mouse pos
I believe it makes sense to only do this when there are no known
touch points. I am not even sure if this should be done at all.
See https://github.com/raysan5/raylib/issues/4872 for more information.
9 months ago
Ray
1a67dcb578
REVIEWED: RGB order on SDL3 #3568
9 months ago
Jonathan Marler
af16f7823a
Improve description of RestoreWindow
Restore window currently says it sets the window state to:
"not minimized/maximized"
However, if a window is maximized and then minimized, it's typical that
it would restore back to being maximized, which is what seems to happen
from my testing. I've reworded the description to better reflect
this behavior.
9 months ago
MikiZX1
55c6864092
Update rcore_desktop_sdl.c
raylib app crashing when started and a gamepad is already connected to the PC (even if the gamepad is not used in the app). I only tested this with a gamepad that has a layout which is not recognized. Using SDL3 as backend.
9 months ago
Ray
266fba1111
Minor tweaks
9 months ago
Jeffery Myers
d56ab670c3
spaces not tabs
9 months ago
Ray
cb830bed72
Increased depth size and clip distances to avoid z-fighting issues
9 months ago
Ray
d0e638cc31
REVIEWED: Platform DRM messages...
9 months ago
Jeffery Myers
4bed3741c1
Unscale the window size on resize if we are doing automatic HighDPI scaling.
9 months ago
Ray
7f8bf2233c
REVIEWED: Formating to follow raylib conventions
10 months ago
Colleague Riley
0853c5b03f
[rcore][RGFW] bug fixes ( #4798 )
* update RGFW to 1.6
* properly handle RGFW_quit events
* fix rcore_desktop_rgfw bugs
* update
* update
* uncomment out
10 months ago
Kaluub
9ba0cdbe6d
Fix GetCurrentMonitor comments. ( #4812 )
10 months ago
sleeptightAnsiC
a20d9dedf3
[desktop_glfw] fix InitPlatform crash caused by glfwCreateWindow... ( #4804 )
...returning NULL. This was causing a crash few lines later.
Refs: https://github.com/raysan5/raylib/issues/4801#issuecomment-2691201072
Partially-fixes: https://github.com/raysan5/raylib/issues/4801
10 months ago
Colleague Riley
e4dcdfa1f2
update RGFW to 1.6 ( #4795 )
10 months ago
Mario Nachbaur
85a87baf69
Support `IsWindowHidden()` on web. ( #4789 )
10 months ago
Colleague Riley
c34ef35433
Update RGFW and ensure it's consistent with the GLFW backend ( #4783 )
* add PLATFORM_WEB_RGFW
* fix some bugs
* fix web_rgfw gamepad
* send fake screensize
* fix gamepad bugs (linux) | add L3 + R3 (gamepad)
* fix?
* update RGFW (again)
* update raylib (merge)
* fix xinput stuff
* delete makefile added by mistake
* update RGFW
* update RGFW (rename joystick to gamepad to avoid misunderstandings
* update RGFW (fix X11 bug)
* update RGFW
* use RL_MALLOC for RGFW
* update RGFW (fixes xdnd bug)
* fix some formating
* Update RGFW
* update RGFW
* undo change
* undo change
* undo change
* undo change
* have .scroll be 0 by default
* update RGFW
* update RGFW
* update RGFW
* fix year
* fix wasm key event bug
* update RGFW
* link to IOKit
* update
10 months ago
Ray
5ea60dd3ce
Minor tweaks
10 months ago
Ray
32fcfd3549
Minor tweaks
10 months ago
sleeptightAnsiC
77df0ab1e8
[rcore_desktop_glfw.c] fix: make sure that GLFW uses RL_*alloc macros ( #4777 )
Raylib allows for providing custom allocators via macros.
GLFW supports this too, but via function pointers.
Make sure that GLFW uses those Raylib macros, by wrapping them in
function calls and setting them up inside of InitPlatform().
This is possible because of glfwInitAllocator() and GLFWallocator.
Fixes: https://github.com/raysan5/raylib/issues/4776
Relates-to: https://github.com/raysan5/raylib/issues/4751
10 months ago
Le Juez Victor
2b59e7475f
Implement Android-specific functions ( #4769 )
`GetWindowScaleDPI` and monitor physical dimensions
10 months ago
whaley
e85ae86f70
[platforms/glfw] fix: allow GetGamepadButtonPressed() to return GAMEPAD_BUTTON_LEFT_TRIGGER_2 / GAME_PAD_BUTTON_RIGHT_TRIGGER_2 if they are pressed ( #4742 )
11 months ago
Eike Decker
1f6de0c507
Replacing hardcoded canvas id references with module variable usages ( #4735 )
Should also have the benefit of being faster.
11 months ago
Ray
9789ff123b
REVERTING: `emscripten_sleep()` previous removal #4713
11 months ago
Asdqwe
139de05e9d
[rcore] [SDL2] Fix gamepad event handling by adding joystick instance id tracking ( #4724 )
* Fix gamepad SDL_JOYDEVICEADDED and SDL_JOYDEVICEREMOVED event handling for PLATFORM_DESKTOP_SDL by adding joystick instance id tracking
* Fix gamepad button handling
11 months ago
Ray
d48b8afbb5
Update rcore_web.c
11 months ago
Anthony Carbajal
77c509db6e
removed hardcoded sleep ( #4713 )
11 months ago
Ray
74256943a4
REVIEWED: `MAX_GAMEPAD_NAME_LENGTH` #4695
11 months ago
Colleague Riley
6bf40eee4f
Update to RGFW 1.5 ( #4688 )
* add PLATFORM_WEB_RGFW
* fix some bugs
* fix web_rgfw gamepad
* send fake screensize
* fix gamepad bugs (linux) | add L3 + R3 (gamepad)
* fix?
* update RGFW (again)
* update raylib (merge)
* fix xinput stuff
* delete makefile added by mistake
* update RGFW
* update RGFW (rename joystick to gamepad to avoid misunderstandings
* update RGFW (fix X11 bug)
* update RGFW
* use RL_MALLOC for RGFW
* update RGFW (fixes xdnd bug)
* fix some formating
* Update RGFW
* update RGFW
* undo change
* undo change
* undo change
* undo change
* have .scroll be 0 by default
* update RGFW
* update RGFW
* update RGFW
* fix year
* fix wasm key event bug
11 months ago
Eike Decker
5c1cce28a7
Using Module provided canvas id for event binding ( #4690 )
This change is replacing the hardcoded "#canvas" element references in
rcore_web to allow using canvas elements that use different names
(which is necessary when using multiple canvas elements on one page).
Also adding a cursor hiding example to mouse example.
11 months ago