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

[examples] Add drawing for generic gamepad on core_input_gamepad example #4424

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

asdqwe
Copy link
Contributor

@asdqwe asdqwe commented Oct 23, 2024

Gamepads detected as "generic" now look like this on the core_input_gamepad example:

img

To test this PR, spoof the aliases like this:
diff --git a/examples/core/core_input_gamepad.c b/examples/core/core_input_gamepad.c
index 538e1c38..e5af88f2 100644
--- a/examples/core/core_input_gamepad.c
+++ b/examples/core/core_input_gamepad.c
@@ -20,9 +20,9 @@
 #include "raylib.h"
 
 // NOTE: Gamepad name ID depends on drivers and OS
-#define XBOX_ALIAS_1 "xbox"
-#define XBOX_ALIAS_2 "x-box"
-#define PS_ALIAS     "playstation"
+#define XBOX_ALIAS_1 "aaa"
+#define XBOX_ALIAS_2 "bbb"
+#define PS_ALIAS     "ccc"
 
 //------------------------------------------------------------------------------------

@raysan5 raysan5 merged commit 157ee79 into raysan5:master Oct 23, 2024
13 checks passed
@raysan5
Copy link
Owner

raysan5 commented Oct 23, 2024

@asdqwe looks great! thanks! 😄

@asdqwe asdqwe deleted the add-gamepad-generic branch October 23, 2024 18:45
psxdev pushed a commit to raylib4Consoles/raylib that referenced this pull request Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants