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

CMake project never enables xinput support on Windows #1952

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Closed

CMake project never enables xinput support on Windows #1952

SDLBugzilla opened this issue Feb 11, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: HG 2.0
Reported for operating system, platform: Windows (All), All

Comments on the original bug report:

On 2015-08-21 02:58:43 +0000, Alex Szpakowski wrote:

When using the CMake project to build SDL on Windows, it is never able to find xinput.h and so prevents the xinput gamepad support from being compiled.

The cmake configuration gives this output:

-- Looking for xinput.h
-- Looking for xinput.h - not found

The rest of the windows/directx-related headers are found successfully.

xinput.h definitely exists in the expected locations on my system - the Visual Studio project seems to find it fine and builds SDL's xinput code successfully. (My Xbox 360 gamepad is registered as an xinput gamecontroller when using the VS project, but isn't when using CMake.)

Tested using VS2013, running Windows 8.1.

On 2015-08-28 22:06:08 +0000, Alex Szpakowski wrote:

This commit should fix it: https://hg.libsdl.org/SDL/rev/3d08cb641cd5

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

No branches or pull requests

1 participant