Commit graph raylib/src/rcore.c
Author SHA1 Message Date
MichaelFiber
a18fe28e6f Move GetMouseX, GetMouseY, GetMousePosition out of rcore 2023-09-18 16:22:47 -04:00
MichaelFiber
4c59791903 Move SetGamepadMappings out of rcore 2023-09-18 16:19:52 -04:00
MichaelFiber
6809f06b55 Move GetGamepadAxisCount from rcore 2023-09-18 16:17:51 -04:00
MichaelFiber
c89d178e8d Move GetMonitorPhysicalWidth from rcore to submodule 2023-09-18 16:15:21 -04:00
michaelfiber
968780bce8 Move TakeScreenshot, OpenURL, GetGamepadName out of rcore into submodules 2023-09-18 12:16:04 -04:00
MichaelFiber
3ee196fa1f Move 18 functions from rcore to submodules
GetWindowHandle
GetMonitorCount
GetCurrentMonitor
GetMonitorPosition
GetMonitorWidth
GetMonitorHeight
GetMonitorPhysicalHeight
GetMonitorRefreshRate
GetWindowPosition
GetWindowScaleDPI
GetMonitorName
SetClipboardText
GetClipboardText
ShowCursor
HideCursor
EnableCursor
DisableCursor
GetTime
2023-09-17 23:00:23 -04:00
MichaelFiber
296e5c1dcd Minor clean up, revert makefile change, include submodules directly in rcore 2023-09-17 14:52:45 -04:00
MichaelFiber
59ee375370
Merge branch 'master' into submodules 2023-09-14 16:31:40 -04:00
MichaelFiber
6af88f60eb Move 13 functions out of rcore:
ToggleBorderlessWindowed
SetWindowState
ClearWindowState
SetWindowIcon
SetWindowIcons
SetWindowTitle
SetWindowPosition
SetWindowMonitor
SetWindowMinSize
SetWindowMaxSize
SetWindowSize
SetWindowOpacity
SetWindowFocused
2023-09-14 16:29:40 -04:00
michaelfiber
67d04b96e4 Move MaximizeWindow, MinimizeWindow and RestoreWindow out of rcore 2023-09-14 13:51:44 -04:00
michaelfiber
f6d30b5fbd Move ToggleFullscreen out of rcore 2023-09-14 13:36:48 -04:00
michaelfiber
92fd9eac06 Move IsWindowMaximized, IsWindowFocused and IsWindowResized out of rcore 2023-09-14 13:32:56 -04:00
michaelfiber
1b00a100fe Move IsWindowMinimized out of rcore 2023-09-14 13:28:05 -04:00
michaelfiber
c68a189af4 Move IsWindowHidden out of rcore 2023-09-14 13:25:12 -04:00
michaelfiber
2125da5926 Move WindowShouldClose out of rcore 2023-09-14 13:20:24 -04:00
michaelfiber
cc5249b82c Move android_main and CloseWindow() out of rcore 2023-09-14 13:14:54 -04:00
MichaelFiber
a0afba2de0 Start moving InitGraphicsDeivce 2023-09-14 12:46:09 -04:00
ubkp
8a1779b2ad
Rename windowM* to screenM* (#3312) 2023-09-14 11:57:23 +02:00
MichaelFiber
7af660d6e6 Add submodules to Makefile and clean up some imports 2023-09-13 17:13:53 -04:00
MichaelFiber
205b9e171e
Merge branch 'master' into submodules 2023-09-13 16:47:17 -04:00
MichaelFiber
cddb0fa969 Check in current state 2023-09-13 16:45:30 -04:00
ubkp
719365f209
Add SetWindowMaxSize for desktop and web (#3309)
* Add SetWindowMaxSize for desktop and web

* Remove SizeInt and respective adjustments
2023-09-13 16:37:11 +02:00
Peter0x44
9d230d753b
Implement FLAG_WINDOW_RESIZABLE for web (#3305)
Fixes #3231
2023-09-11 19:03:33 +02:00
MichaelFiber
37f60e75e7
Remove unneeded #if (#3301)
Co-authored-by: MichaelFiber <michael@cubeofb.org>
2023-09-09 09:47:07 +02:00
Ray
b68d0850b1 Some code restructuring for input functions, consistency review 2023-09-08 20:01:52 +02:00
MichaelFiber
18e9784c6d
Remove PLATFORM_RPI (#3232)
* Remove PLATFORM_RPI

* remove build artifacts

---------

Co-authored-by: MichaelFiber <michael@cubeofb.org>
Co-authored-by: Ray <raysan5@gmail.com>
2023-09-07 17:42:28 +02:00
Ray
b0c6972e5c Update rcore.c 2023-09-06 23:33:29 +02:00
Ray
d7debba222 Mouse offset and scaling must be considered also on web! 2023-09-06 23:16:31 +02:00
Ray
bdda1efd44 Fix #3247 2023-09-04 18:43:25 +02:00
Ray
6e18d96e7a Some tweaks 2023-09-02 12:54:36 +02:00
Ray
8157d4283e REVIEWED: GetFileLength(), added comment #3262 2023-08-29 19:26:15 +02:00
Ray
150663f78a Use type name instead of valid specifier
long long --> long long int
2023-08-29 19:25:44 +02:00
Ethan Conneely
fc0d132566
Remove e from secondes (#3270) 2023-08-28 22:49:45 +02:00
Nickolas McDonald
9c9fba6a6c
[Feature] IsKey... safety checks and more (#3256)
* [Feature] Add GetKeyRepeat

* Update rcore.c

* Simpler design, only one repeat per frame

* Update config.h

* Update rcore.c

* Add KEYBOARD_KEYS_MASK

* Update config.h

* reversions

* Update rcore.c

* Update rcore.c

* change docs

* Update rcore.c

* Update rcore.c

* Update rcore.c

* Update rcore.c

* Update rcore.c

* Update raylib.h

* Update rcore.c

* Update rcore.c

* Update rcore.c

* Update rcore.c

* Update rcore.c

* Update rcore.c

* Update rcore.c

* Update rcore.c
2023-08-26 14:48:28 +02:00
ubkp
4fa66f2635
Fix SetClipboardText for web (#3257) 2023-08-26 14:40:30 +02:00
vitopigno
5ed83dfa29
Update rcore.c (#3255) 2023-08-21 00:36:00 +02:00
Ray
dfd0436428 Reviewed IsKeyPressedRepeat() #3248 2023-08-21 00:34:35 +02:00
actondev (Christos)
b3f82a148a
Add IsKeyPressedRepeat (desktop only) (#3245)
Since the key pressed are handle by comparing current vs previous
state (ie frame), a special way is needed to handle key repeats.
2023-08-20 23:53:20 +02:00
Ray
93f59a6f59 Review tabs and trail-spaces 2023-08-10 22:47:17 +02:00
RadsammyT
03ecf2202e
Fix typos in rcore.c comments (#3234)
* Fix typos in rcore.c comments

thought i corrected "dettach"
Fix typos in rcore.c comments

* 'fordward' > forward
2023-08-08 20:10:40 +02:00
mohad12211
db55bed72b
fix: check if ctrl modifier is among the currently set modifiers (#3230) 2023-08-07 19:51:36 +02:00
Le Juez Victor
c9864d8ac1
Fixed Android app black screen issue when reopening after incomplete closing (#3227)
* Fixed black screen issue when resuming the app on Android

Partly explained here: https://github.com/raysan5/raylib/issues/3127

* Fix APP_CMD_TERM_WINDOW for Android
2023-08-06 22:04:20 +02:00
vitopigno
d3058fe589
[CORE] Support for SetWindowTitle and InitWindow for web (#3222)
* Update raylib.h

Changed SetWindowTitle's description

* Update rcore.c

SetWindowTitle now works on web

* Update rcore.c

InitWindow title now works with web platform too.
2023-08-04 12:04:19 +02:00
ubkp
464e714a2e
Adds BORDERLESS_WINDOWED_MODE for PLATFORM_DESKTOP (#3216) 2023-08-02 19:16:35 +02:00
Jeffery Myers
04678bc585
int math done with floats causes warnings. (#3218) 2023-08-02 19:12:38 +02:00
ubkp
4fd40f0333
Fixes GetCurrentMonitor() detection inconsistency issue (#3215) 2023-08-01 10:42:50 +02:00
ubkp
962030e70a
Changes SetWindowMonitor() to no longer force fullscreen (#3209)
* Changes SetWindowMonitor() to no longer force fullscreen

* Readds fullscreen support
2023-07-28 20:08:41 +02:00
ubkp
090b857912
Fix mouse wheel not working in PLATFORM_RPI or PLATFORM_DRM (#3193) 2023-07-23 20:35:41 +02:00
ubkp
b980268ba7
[example] Core Input Gestures for Web (#3172)
* [example] Core Input Gestures for Web

* Fix Doubletap for web

* Changes TAP_TIMEOUT and rgGetCurrentTime to seconds
2023-07-16 13:07:29 +02:00
Ray
b807c590cb Merge branch 'master' of https://github.com/raysan5/raylib 2023-07-10 19:13:53 +02:00