371d25c8c9
Gamepad rumble support with SDL2 ( #3819 )
...
* Added gamepad rumble to rcore_desktop.c and rcore_desktop_sdl.c
Still need to add to the rest of the platforms.
* Add SetGamepadVibration warnings to unimplemented platforms.
* Added MAX_GAMEPAD_VIBRATION_TIME
The rumble in SDL2 will continue for MAX_GAMEPAD_VIBRATION_TIME unless the user cancels it with a call to SetGamepadVibration(0.0f,0.0f,0.0f)
* Cast float duration value to Uint 32
* Changed defines from int to float and fixed typo
---------
Co-authored-by: Gideon Serfontein <gse@newspacesystems.com >
2024-02-24 16:47:27 +01:00
a96b224b38
Add gamepad support to PLATFORM_DESKTOP_SDL ( #3776 )
...
Co-authored-by: Arthur <hi@thenightwat.ch >
2024-02-04 11:24:05 +01:00
d79828076f
REVIEWED: macOS issues #3767
2024-02-01 00:03:06 +01:00
5c25913e09
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>
2024-01-20 21:22:33 +01:00
0a8165c0ac
Make raylib/raygui work better on touchscreen ( #3728 )
...
* Fix that touch doesn't work for click/drag/raygui
* Add comments
* comments update
2024-01-20 21:05:30 +01:00
520c8cffb2
Simplified GetWindowScaleDPI() so it does not fetch the wrong DPI scale some times (Windows looks at center of window while the old raylib code looked on upper left corner of window, now it just uses the glfw function to fetch the window's current scaling). Also introduced a callback to update the CORE.Window.screenScaling when the content scaling updates, previously scaling did not work correctly on systems with multiple monitors that have different DPI scaling. ( #3701 )
2024-01-13 10:49:04 +01:00
3f1e59a7cf
Update copyright to 2024
2024-01-02 20:58:12 +01:00
43b4f90eb7
Fix SUPPORT_WINMM_HIGHRES_TIMER for PLATFORM_DESKTOP_SDL ( #3679 )
2023-12-28 20:08:04 +01:00
efe3510a9a
REVIEWED: SDL text input to Unicode codepoints #3650
...
REVIEWED: GLFW naming conventions to reflect codepoints reading
2023-12-23 12:04:19 +01:00
57a5ebe6c6
Don't use a separate thread when polling for gamepad events on DRM platforms ( #3641 )
2023-12-19 10:47:04 +01:00
9fcfc8d64b
[rcore] Fix ShowCursor(), HideCursor() and review SetMouseCursor() for PLATFORM_WEB ( #3647 )
...
* Fix ShowCursor(), HideCursor() and review SetMouseCursor() for PLATFORM_WEB
* Add static to cursorLUT[]
* Re-review SetMouseCursor()
2023-12-17 13:46:21 +01:00
2487174b48
Fix CORE.Input.Mouse.cursorHidden with callbacks for PLATFORM_WEB ( #3644 )
2023-12-16 18:25:55 +01:00
0df78d4eeb
Fix fullscreen known issue 1 for PLATFORM_WEB ( #3642 )
2023-12-16 18:22:02 +01:00
e001f7e75e
Add ToggleFullscreen() and required changes for PLATFORM_WEB ( #3634 )
2023-12-15 17:36:27 +01:00
489f0b93f9
[rcore] Add GetWindowPosition() implementation for PLATFORM_WEB and fixes #3636 style/format ( #3637 )
...
* Add GetWindowPosition() implementation for PLATFORM_WEB and fixes #3636 style/format
* Remove double space
2023-12-15 16:24:45 +01:00
10c82595b0
Add GetMonitorWidth() and GetMonitorHeight() implementations for PLATFORM_WEB ( #3636 )
2023-12-14 20:55:33 +01:00
38626dcffd
REVIEWED: HighDPI support on Web platform #3372 -WIP-
...
NOTE: The code is commented until the build system gets updated to latest emscripten.
2023-12-14 15:32:53 +01:00
a2e45239c3
[rcore] Complement SetWindowState() and ClearWindowState() for PLATFORM_WEB ( #3625 )
...
* Complement SetWindowState() and ClearWindowState() for PLATFORM_WEB
* Add FLAG_WINDOW_RESIZABLE to SetWindowState() and ClearWindowState() for PLATFORM_WEB
2023-12-11 09:11:42 +01:00
39457ace2f
[rcore] Add ToggleBorderlessWindowed() implementation for PLATFORM_WEB ( #3622 )
...
* Add ToggleBorderlessWindowed() for PLATFORM_WEB
* Fix coding convention
2023-12-11 09:11:20 +01:00
44eeda2475
Optimize gesture handling for PLATFORM_DRM ( #3616 )
2023-12-11 08:58:55 +01:00
ed8a18ea64
[rcore] Fix real touch gestures for PLATFORM_DESKTOP_SDL ( #3614 )
...
* Fix touch gestures for PLATFORM_DESKTOP_SDL
* Complement note and optimization
* Events optimization
* Optimize gesture handling
* Reverts previous commit and fixes GESTURE_DRAG to not trigger GESTURE_SWIPE* when it ends
* Reapply previous gesture handling optimization also fixing GESTURE_DRAG to not trigger GESTURE_SWIPE* when it ends
2023-12-11 08:57:51 +01:00
a9ba51aa72
[rcore] Fix IsMouseButtonUp() for PLATFORM_WEB and PLATFORM_DRM ( #3611 )
...
* Fix IsMouseButtonUp() for PLATFORM_WEB
* Fix IsMouseButtonUp() for PLATFORM_DRM
2023-12-07 19:53:27 +01:00
ab9bddb3bd
[rcore] Fix IsMouseButtonUp() and add touch events for PLATFORM_DESKTOP_SDL ( #3610 )
...
* Fix IsMouseButtonUp() and add touch events for PLATFORM_DESKTOP_SDL
* Fix coding convention
2023-12-07 19:53:02 +01:00
8b33d1eeb9
Fix IsMouseButtonUp() ( #3609 )
2023-12-07 19:50:36 +01:00
d99617d084
[rcore] Fix IsKeyPressedRepeat() for PLATFORM_DESKTOP_SDL ( #3605 )
...
* Fix IsKeyPressedRepeat() for PLATFORM_DESKTOP_SDL
* Fix missing space
2023-12-07 19:47:58 +01:00
984e83c2d0
Fix GetKeyPressed and GetCharPressed for SDL ( #3604 )
2023-12-05 10:02:48 +01:00
d0a783e362
Revert "Fix Windows Hardcoding ( #3600 )"
...
This reverts commit 4ae2af0bcc .
2023-12-03 20:08:48 +01:00
5aa84a34ea
Revert "Fix warning while using external GLFW older than version 3.4.0 ( #3599 )"
...
This reverts commit f1b0d15813 .
2023-12-03 20:06:34 +01:00
4ae2af0bcc
Fix Windows Hardcoding ( #3600 )
...
Compiles on Linux & co. now
2023-12-03 19:55:16 +01:00
f1b0d15813
Fix warning while using external GLFW older than version 3.4.0 ( #3599 )
...
Co-authored-by: Marco Maia <marco.maia@iarasystems.com.br >
2023-12-03 19:53:52 +01:00
0748dc2d1e
Remove a duplicated loop for PLATFORM_DRM ( #3590 )
2023-12-01 14:55:48 +01:00
bd81bdc24a
Fix IsKeyPressedRepeat() for PLATFORM_DRM direct input ( #3583 )
2023-11-30 10:09:57 +01:00
fe53ba80dd
Fix typos in src/platforms/rcore_*.c ( #3581 )
2023-11-28 20:39:10 +01:00
1906f1eddf
Fix SetMousePosition() for SDL ( #3580 )
2023-11-28 20:37:04 +01:00
c35c531551
Fix SetWindowIcon() for SDL ( #3578 )
2023-11-27 16:34:17 +01:00
994c4f4bdf
Update rcore_desktop_sdl.c
2023-11-20 23:21:04 +01:00
e41a0c9721
fix for running gles2 with sdl on desktop ( #3542 )
2023-11-18 20:03:13 +01:00
db70db5f4d
Fix missing keys on PLATFORM_DESKTOP_SDL ( #3539 )
2023-11-14 11:49:27 +01:00
87f26c845c
Fix mouse button order for SDL ( #3534 )
2023-11-13 00:16:31 +01:00
1b88f2ec03
Review #3526
2023-11-11 20:53:36 +01:00
107ece438a
Reviewed duplicate lines
2023-11-10 19:48:47 +01:00
e4ea116857
Reviewing automation events on web...
2023-11-10 19:25:28 +01:00
271a72f2f2
Fix absRange for PLATFORM_DRM ( #3517 )
2023-11-07 22:15:23 +01:00
9a2b735645
Fix mouse/touch/gestures for PLATFORM_DRM ( #3515 )
2023-11-07 19:02:24 +01:00
3c3e311190
Remove unneeded line on web platform
2023-11-02 18:18:05 +01:00
807516a991
Support OpenGL ES 3.0 building on Web
...
For some reason, the equivalent requested context (WebGL 2.0) is not provided, despite being properly requested.
2023-11-02 18:13:37 +01:00
b40f93b9e3
Comments tweaks
2023-11-02 18:12:22 +01:00
fe34fc7c6b
Partial fix the gesture system for DRM ( #3502 )
2023-11-02 17:35:11 +01:00
de1ceae4b0
[core] Fix gestures for PLATFORM_DESKTOP_SDL ( #3499 )
...
* Fix gestures for SDL
* Review the gesture handling for SDL
* Review 2
2023-11-02 09:13:41 +01:00
d77c918d51
Update rcore_web.c
2023-11-01 16:24:06 +01:00