Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Nov 27, 2024
1 parent 5e61764 commit 09f5bbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/basic/basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ int main(void) {
printf("dropped : %s\n", win->event.droppedFiles[i]);
}

else if (win->event.type == RGFW_jsButtonPressed)
else if (win->event.type == RGFW_gpButtonPressed)
printf("pressed %i\n", win->event.button);

else if (win->event.type == RGFW_jsAxisMove && !win->event.button)
else if (win->event.type == RGFW_gpAxisMove && !win->event.button)
printf("{%i, %i}\n", win->event.axis[0].x, win->event.axis[0].y);
}

Expand Down

0 comments on commit 09f5bbd

Please sign in to comment.