Skip to content

Commit

Permalink
fix controller check
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Dec 27, 2024
1 parent abd4c82 commit b9456aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/general/gamepad.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ void deviceAddedCallback(void *context, IOReturn result, void *sender, IOHIDDevi

if (usage != kHIDUsage_GD_Joystick && usage != kHIDUsage_GD_GamePad && usage != kHIDUsage_GD_MultiAxisController) {
printf("Device is not a controller. Ignoring...s\n");
return;
}

// Register input value callback for the device
Expand Down

0 comments on commit b9456aa

Please sign in to comment.