Skip to content

Commit

Permalink
rename joystick to gamepad
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Nov 27, 2024
1 parent 50e70eb commit 5e61764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RGFW.h
Original file line number Diff line number Diff line change
Expand Up @@ -2291,7 +2291,7 @@ This is where OS specific stuff starts
while ((bytes = read(RGFW_gamepads[i], &e, sizeof(e))) > 0) {
switch (e.type) {
case JS_EVENT_BUTTON:
win->event.type = e.value ?gp :gp;
win->event.type = e.value ? RGFW_gpButtonPressed : RGFW_gpButtonReleased;
win->event.button = e.number;
RGFW_gpPressed[i][e.number + 1] = e.value;
RGFW_gpButtonCallback(win, i, e.number, e.value);
Expand Down

0 comments on commit 5e61764

Please sign in to comment.