Skip to content

Update gamepads_windows to use a newer API #31

@markvideon

Description

@markvideon

gamepads_windows currently appears to use the Joysticks API. As per its documentation, it has now been superseded by Windows.Gaming.Input, which provides some functionality comparable to the Game Controller Library provided by Apple.

There is a larger project to make Windows APIs accessible as Dart packages via FFI. One such package is windows_gaming. https://github.com/halildurmus/dartwinrt/tree/main/packages/windows_gaming

It may be worth exploring making use of this package.

EDIT: I've come to understand that migrating to this API may affect compatibility with controllers that don't support XInput.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededwindowsRelates to gamepads_windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions