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

[SDL] enable hidapi #25022

Merged
merged 2 commits into from
Jun 2, 2022
Merged

[SDL] enable hidapi #25022

merged 2 commits into from
Jun 2, 2022

Conversation

JonLiu1993
Copy link
Member

Describe the pull request

SDL uses HIDAPI for some game controller features, most notably access to the gyroscope and accelerometer data. This isn't included currently in vcpkg, so only the buttons and joysticks work.
SDL uses its own bundled hidapi version, so we should just need to enable the DSDL_HIDAPI_JOYSTICK=ON cmake flag

@JonLiu1993 JonLiu1993 added category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist info:internal This PR or Issue was filed by the vcpkg team. labels Jun 1, 2022
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

After committing all other changes, the version database must be updated
git add -u && git commit
git checkout f78f4440df86358575dea65e748a39fdad41eb85 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/baseline.json b/versions/baseline.json
index 17f6044..dd1f46a 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -6406,7 +6406,7 @@
     },
     "sdl2": {
       "baseline": "2.0.22",
-      "port-version": 0
+      "port-version": 1
     },
     "sdl2-gfx": {
       "baseline": "1.0.4",
diff --git a/versions/s-/sdl2.json b/versions/s-/sdl2.json
index 17383fd..2d5eb6a 100644
--- a/versions/s-/sdl2.json
+++ b/versions/s-/sdl2.json
@@ -1,5 +1,10 @@
 {
   "versions": [
+    {
+      "git-tree": "879012d1bbd3ae67fc697109eedbe6ff713c2c34",
+      "version": "2.0.22",
+      "port-version": 1
+    },
     {
       "git-tree": "6d875fe2feac0480f61fcf890136e045c12429f1",
       "version": "2.0.22",

@JonLiu1993 JonLiu1993 marked this pull request as ready for review June 2, 2022 02:28
@FrankXie05 FrankXie05 added the info:reviewed Pull Request changes follow basic guidelines label Jun 2, 2022
Copy link
Contributor

@ras0219-msft ras0219-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM because

  1. SDL seems to have modified/improved the implementation
  2. They rename the symbols to avoid ODR violations (Rename hidapi symbols to prevent static linking issues libsdl-org/SDL#4602)

@ras0219-msft ras0219-msft merged commit 38bb87c into microsoft:master Jun 2, 2022
@JonLiu1993 JonLiu1993 deleted the dev/Jon/19252 branch June 6, 2022 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist info:internal This PR or Issue was filed by the vcpkg team. info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SDL] enable hidapi
3 participants