Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sgamepad_is_connected #1

Closed
wants to merge 2 commits into from
Closed

Add sgamepad_is_connected #1

wants to merge 2 commits into from

Conversation

meshula
Copy link

@meshula meshula commented Dec 5, 2020

  • adds a return value to sgamepad_get_gamepad_state to indicate whether the read values come from a connected joystick. (If return == index, success)
  • adds a connected field to sgamepad_gamepad_state
  • adds bool sgamepad_is_connected(unsigned int index)
  • uses float_min and float_max instead of fmin fmax to solve MSVC issues that cause upcasting to double
  • eliminates __cplusplus check on ARC features to enable use from with with ObjC++ in addition to ObjC
  • logic not tested on Android because I'm not set up for Android development

@meshula meshula closed this Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant