Skip to content

Commit

Permalink
Merge pull request #81 from ColleagueRiley/monitor-review
Browse files Browse the repository at this point in the history
review monitor functions
  • Loading branch information
ColleagueRiley authored Feb 20, 2025
2 parents 3d5ca3d + 88ed12b commit 47c2771
Show file tree
Hide file tree
Showing 6 changed files with 202 additions and 180 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ Current Version: RGFW 1.6-dev
RGFW_glDebug
RGFW_glNoError
RGFW_glReleaseBehavior
- add RGFW_monitorMode AND mode.red, mode.green, mode.blue
- add `RGFW_monitorModeCompare`
- change `RGFW_monitor_scale` to `RGFW_monitor_requestMode`
- RGFW stalls on RGFW_quit
- ensure monitor functions can be used prior to window creation

Release: RGFW 1.5 (Jan 14, 2024)
-----------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ int main() {
while (RGFW_window_shouldClose(win) == RGFW_FALSE) {
while (RGFW_window_checkEvent(win)) { // or RGFW_window_checkEvents(); if you only want callbacks
// you can either check the current event yourself
if (win->event.type == RGFW_quit) break;
if (win->event.type == RGFW_mouseButtonPressed && win->event.button == RGFW_mouseLeft) {
printf("You clicked at x: %d, y: %d\n", win->event.point.x, win->event.point.y);
}
Expand Down
Loading

0 comments on commit 47c2771

Please sign in to comment.