7f8bf2233c
REVIEWED: Formating to follow raylib conventions
2025-03-10 17:08:18 +01:00
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
2025-03-10 16:50:40 +01:00
9ba0cdbe6d
Fix GetCurrentMonitor comments. ( #4812 )
2025-03-07 19:21:08 +00:00
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
2025-03-01 23:42:07 +01:00
e4dcdfa1f2
update RGFW to 1.6 ( #4795 )
2025-02-25 21:49:37 +01:00
85a87baf69
Support IsWindowHidden() on web. ( #4789 )
2025-02-23 18:19:42 +01:00
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
2025-02-21 12:32:09 +01:00
5ea60dd3ce
Minor tweaks
2025-02-20 18:10:01 +01:00
32fcfd3549
Minor tweaks
2025-02-19 13:38:22 +01:00
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
2025-02-18 22:53:18 +01:00
2b59e7475f
Implement Android-specific functions ( #4769 )
...
`GetWindowScaleDPI` and monitor physical dimensions
2025-02-15 19:34:51 +01:00
e85ae86f70
[platforms/glfw] fix: allow GetGamepadButtonPressed() to return GAMEPAD_BUTTON_LEFT_TRIGGER_2 / GAME_PAD_BUTTON_RIGHT_TRIGGER_2 if they are pressed ( #4742 )
2025-02-01 10:50:25 +01:00
1f6de0c507
Replacing hardcoded canvas id references with module variable usages ( #4735 )
...
Should also have the benefit of being faster.
2025-01-31 00:34:51 +01:00
9789ff123b
REVERTING: emscripten_sleep() previous removal #4713
2025-01-28 16:19:30 +01:00
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
2025-01-25 20:49:42 +01:00
d48b8afbb5
Update rcore_web.c
2025-01-20 14:01:57 +01:00
77c509db6e
removed hardcoded sleep ( #4713 )
2025-01-20 12:14:18 +01:00
74256943a4
REVIEWED: MAX_GAMEPAD_NAME_LENGTH #4695
2025-01-18 19:39:50 +01:00
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
2025-01-16 00:34:27 +01:00
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.
2025-01-16 00:32:58 +01:00
fc29bc27fd
Fix Touch pointCount reduction ( #4661 )
2025-01-06 11:29:24 +01:00
ad035edfac
Fix camera initial position ( #4657 )
2025-01-05 12:30:43 +01:00
97fa3a73e8
Fix: Alt-Tab not working in borderless fullscreen ( #3865 ) ( #4655 )
2025-01-03 17:36:48 +01:00
fa0eada61a
Update year to 2025
2025-01-01 00:02:52 +01:00
5b822585e5
[rcore] [GLFW] [SDL2] Updates CORE.Window.eventWaiting and FLAG_WINDOW_ALWAYS_RUN handling ( #4642 )
...
* Add implementation for CORE.Window.eventWaiting on PLATFORM_DESKTOP_SDL
* Optimize GetFrameTime() reset
* Optimize FLAG_WINDOW_ALWAYS_RUN and GetFrameTime() reset for PLATFORM_DESKTOP_GLFW
2024-12-28 15:59:05 +01:00
7ecc47d12e
Fix IsWindowFocused() on web. ( #4640 )
2024-12-26 20:12:53 +01:00
4758867815
[rcore] [SDL2] Add implementation for FLAG_WINDOW_ALWAYS_RUN ( #4598 )
...
* Enable FLAG_WINDOW_ALWAYS_RUN by default on PLATFORM_DESKTOP_GLFW
* Revert enabling FLAG_WINDOW_ALWAYS_RUN by default on PLATFORM_DESKTOP_GLFW
* Add implementation for FLAG_WINDOW_ALWAYS_RUN on PLATFORM_DESKTOP_SDL
* Add reset for GetFrameTime()
2024-12-26 19:02:57 +01:00
c333e80497
Update RGFW ( #4637 )
...
* 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
2024-12-25 21:19:51 +01:00
e5d8de7c63
Fix: Setting flags disables fullscreen #4618 ( #4619 )
2024-12-23 19:26:50 +01:00
26e12d6b35
Fix Typo in rcore_desktop_sdl.c ( #4621 )
2024-12-20 13:53:51 +01:00
03ff864087
Formating tweaks
2024-12-18 18:44:23 +01:00
99cb4cbc36
Fix SetGamepadVibration() TRACELOG message ( #4615 )
2024-12-18 14:53:50 +01:00
58004723d8
[rcore][RGFW] Add new backend option: PLATFORM_WEB_RGFW and update RGFW ( #4480 )
...
* 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
2024-12-18 12:03:42 +01:00
cdaff163cb
Fix show, hide, focus and unfocus window/flags states for SDL2 ( #4610 )
2024-12-18 11:39:30 +01:00
714cd5ef5c
add SetGamepadVibration to rgfw and template ( #4612 )
2024-12-18 11:38:11 +01:00
bdfbd6e8cc
Fix maximizing, minimizing and restoring windows for SDL2 ( #4607 )
2024-12-16 22:19:00 +01:00
6b220f2798
Review formating
2024-12-12 12:13:17 +01:00
6141489b00
Fixes casting warnings with RGFW platform. ( #4534 )
2024-11-24 16:25:36 +01:00
a53a8958f2
Add implementation to GetWindowScaleDPI() for PLATFORM_WEB ( #4526 )
2024-11-22 10:52:55 +01:00
26548c1062
Remove trail-spaces
2024-11-19 12:33:13 +01:00
9e4f513a43
Reviewed formating
2024-11-19 12:31:57 +01:00
c78757a959
REVIEWED: GetClipboardImage(), make symbol available on all platforms
2024-11-19 12:31:49 +01:00
928535a828
Commented code issuing warnings on w64devkit (GCC)
...
Tested with w64devkit/MSVC and all seem to work as expected
2024-11-14 16:39:38 +01:00
700e2c5e5d
Fix touch count reset ( #4488 )
2024-11-14 10:49:35 +01:00
fb69b39d54
Fix a typecast warning in glfw clipboard access ( #4479 )
2024-11-11 19:46:54 +01:00
00396e3436
[rcore] Clipboard Image Support ( #4459 )
...
* [rcore] add 'GetClipboardImage' for windows
* [rcore] GetClipboardImage removed some unneeded defines
* [rcore] PLATFORM_SDL: create a compatility layer for SDL3
* external: add win32_clipboard.h header only lib
* [rcore] using win32_clipboard on platforms rlfw and rgfw
* [rcore] fix warnings in SDL3 compatibility layer
* Makefile: Allow specifying SDL_LIBRARIES to link, this helps with SDL3
* Makefile: examples makefile now compile others/rlgl_standalone only when TARGET_PLATFORM is PLATFORM_DESKTOP_GFLW
* Makefile: examples makefile now compile others/rlgl_standalone only when TARGET_PLATFORM is PLATFORM_DESKTOP_GFLW
* [rcore]: PLATFORM_SDL: improve clipboard data retrieval
* external: remove unused function from win32_clipboard.h
* Makefile: allow for extra flags necessary when compiling for SDL3
* [rcore]: fix string typo
* [rcore]: Properly handle NULL dpi passing. As is allowed in SDL2
* external: fix arch finding on win32_clipboard.h to allow compilation on msvc cmake CI
* [rcore]: PLATFORM_SDL: Treat monitor as an ID in SDL3 as opposed to an index as in SDL2
* [rcore]: typo
2024-11-09 19:40:41 +01:00
b8c0842b2e
Fix SetWindowSize() for PLATFORM_WEB ( #4452 )
2024-10-30 22:21:37 +01:00
3bad05aa7b
fix the issue with GetScreenWidth/GetScreenHeight that was identified on other platforms ( #4451 )
2024-10-30 20:13:53 +01:00
10c8e4e435
Update rcore_desktop_glfw.c
2024-10-29 09:37:33 +01:00
743e557e1e
Fix inconsistent dll linkage warning on windows ( #4447 )
2024-10-29 09:34:57 +01:00