summaryrefslogtreecommitdiffhomepage
path: root/src/rcore.c
AgeCommit message (Collapse)Author
2022-10-02removed glfwSetWindowPos on InitWindow (#2732)Random
* removed glfwSetWindowPos on InitWindow * removed execute permission from CMakeLists
2022-09-30fix issue #2728 (#2731)Random
* fix issue #2728 * updated gamecontrollerdb: fixes GLFW warning due to invalid entry
2022-09-29Reviewed monitor checking orderRay
2022-09-29Fix #2722Ray
2022-09-25Fix isssue #2718Ray
2022-09-25ADDED: Support CAPS/NUM lock keys registering if lockedRay
2022-09-22Update rcore.cRay
2022-09-19REVIEWED: `ScanDirectoryFilesRecursively()`, fix #2704Ray
2022-09-18Remove touch points on touch up events on Android (#2711)Denis Pobedrya
Fixes #2683 Remove elements from touch point related arrays when touch up and similar events are processed. This makes GetTouchPointCount() always report the actual count of touch points, and all positions returned by GetTouchPosition() correspond to positions of currently happening touches.
2022-09-18[rlgl] Check for extensions before enabling them (#2706)Nikolas
* [rlgl] Check for extensions before enabling them * Shift to glad on macOS * #undef CORE_OPENGL_33 * Remove version hack and fix ASTC compression assumption * Remove loader from glad * Use GLAD_MALLOC/FREE instead of malloc/free * More explicit extension checking
2022-09-18Basic gamepad support for Android (#2709)Denis Pobedrya
Currently assumes a single gamepad, has no code specific to gamepad detection (gamepad is "detected" when an event related to gamepad arrives). Also assumes that all gamepads look roughly like an xbox/ps controller. Both assumptions are not strictly true, but an implementation like that probably covers 85% of usecases. Also it doesn't update previousButtonState so functions IsGamepadButtonPressed() and IsGamepadButtonReleased() don't work, but they didn't work previously on Android anyway, and they are flaky on desktop as they are now, so the mechanism for these two functions probably should be reworked anyway. It's certainly an improvement compared to the previous android gamepad handling code, which put gamepad events into touch related structs.
2022-09-18Fix viewport scaling bug on android after context rebind (#2703)Denis Pobedrya
On android after rebinding context (which happens when you minimize and navigate back to an app, or when you turn a screen off and back on) there's a bug that viewport has a wrong scale and part of it is off screen. The change fixes it on devices I tried, but the solution feels hacky to me. However when I attempted instead to call SetupViewport() again which feels like a more proper solution, it didn't fix it.
2022-09-17Fix touchscreen input related functions on Android (#2702)Denis Pobedrya
Fix display -> screen coordinate conversion for android platform and move it to the platform event handling code, simplifying GetTouchPosition() function implementation. Co-authored-by: Denis Pobedrya <[email protected]>
2022-09-05REVIEWED: rlgl enums and commentsRay
2022-09-02WARNING: RENAMED exported symbol to `raylib_version` #2671Ray
2022-09-02WARNING: RENAMED symbol `raylibVersion` to `raylib_version`Ray
I want to note this is a special symbol exported
2022-09-02Export `raylibVersion` symbol. Fixes #2671Ray
2022-08-21Win32: resolve some symbols re-definition of windows.h in glfw3native.h (#2643)Daijiro Fukuda
* Win32: resolve some symbols re-definition of windows.h in glfw3native.h This reflects GLFW's fix: https://github.com/glfw/glfw/issues/1348 This enables to build with a external GLFW containing the following fix: * https://github.com/glfw/glfw/commit/05f6c13d119ea2662c97527d2421fb4cffd3dbfc Currently, glfw3native.h of the internal GLFW is customized at https://github.com/raysan5/raylib/commit/2feea87b616292b5bce4454a42c2d048f1cce7d8 This fix is compatible with the current customized glfw3native.h. This fix enables us to update it to the latest and remove the customization. * Win32: remove unneeded typedef
2022-08-17REVIEW: Fix issue with external GLFW missing define #2638Ray
2022-08-13Fix string lacking null termination in IsFileExtension (#2637)HarriP
When file extension is longer or equal length compared to buffer holding lowercased string, strncpy does not null terminate the string. Increased buffer size by 1 to ensure it will always be null-terminated, so that following strcmp does not read out of buffer bounds.
2022-08-07Reviewed issue with negative key #2619Ray
2022-08-06Can't alt-tab out of fullscreen window (#2618)veins1
2022-08-02REVIEWED: `GetMouseWheelMove()`, avoid move scaling on `PLATFORM_WEB`Ray
Tested with latest emscripten 3.1.18
2022-08-02Remove trailing spacesRay
2022-08-01Avoid cleaning the front buffer to a specific color!Ray
ISSUE: Front buffer and backbuffer have different clear colors, if no `ClearBackground()` is called by user, there is screen flickering on buffers swap. It's up to the user to call `ClearBackground()` if desired
2022-08-01REMOVED: Config option: `SUPPORT_MOUSE_CURSOR_POINT`Ray
2022-07-19[CORE] Fix Warnings (#2582)Jeffery Myers
* Fix raymath warning with floor to floorf * signed unsigned missmatches
2022-07-05WARNING: BREAKING: REMOVED: `*StorageValue()` functionsRay
Those functions were platform dependent and user has no control over the file created. They have been removed from raylib and just moved to `core_storage_values` example.
2022-07-03REVIEWED: `DecompressData()`Ray
2022-06-25Updated PLATFORM_RPI info #2547Ray
2022-06-18REVIEWED: `IsFileExtension()` #2530Ray
Max file extension size set to 16
2022-06-18Update rcore.cRay
2022-06-17REVIEWED: `LoadDroppedFiles()`, fixed issuesRay
2022-06-16Update rcore.cRay
2022-06-12Update rcore.cRay
2022-06-12Reviewed latest PRRay
2022-06-12Add function to read both X and Y mouse scrolling from a trackpad (#2517)Steven Schveighoffer
(GetMouseWheelMoveV).
2022-06-12REVIEWED: `FilePathList`, consider maximum capacityRay
2022-06-11WARNING: BREAKING: REDESIGNED: Filepath loading APIRay
REDESIGNED: `LoadDirectoryFiles()` ADDED: `LoadDirectoryFilesEx()` REDESIGNED: `LoadDroppedFiles()` ADDED: `IsPathFile()` This BIG BREAKING change simplifies the functions and gives more control to the user: - A new `struct FilePathList` has been added to avoid exposing complex pointers. - User is responsible of memory loading/unloading - Filepaths loading support recursive directories and file extension filters
2022-06-11New feature: support MOUSE_PASSTHROUGH #2516Ray
2022-06-09Minor formattng tweakRay
2022-06-09GetMonitorWidth()/GetMonitorHeight(): return current video resolution ↵gulrak
instead max available (#2514) * GetMonitorWidth()/GetMonitorHeight(): current video resolution instead max available * adapt header comment to reflect change
2022-06-07Unify busy waiting behavior across conditional compilation branches (#2508)flashback-fx
* Unify busy waiting behavior across conditional compilation branches * Inline busy waiting code instead of using static function
2022-06-07REVIEWED: Compilation warningsRay
2022-06-06WARNING: RENAMED: `GetDroppedFiles()` to `LoadDroppedFiles()`Ray
RENAMED: `ClearDroppedFiles()` to `UnloadDroppedFiles()`
2022-06-06WARNING: RENAMED: `GetDirectoryFiles()` to `LoadDirectoryFiles()`Ray
RENAMED: `ClearDirectoryFiles()` to `UnloadDirectoryFiles()`
2022-06-06Reviewed latest PR, variable nameRay
2022-06-06Change WaitTime argument from milliseconds to seconds (#2506)flashback-fx
2022-06-05REVIEWED: Mouse device support on `PLATFORM_DRM` #2381Ray
2022-06-05Fix regression that was causing video stuttering (#2503)flashback-fx