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

Gamepad and Joystick classes #5

Open
ForeverZer0 opened this issue Apr 29, 2019 · 4 comments
Open

Gamepad and Joystick classes #5

ForeverZer0 opened this issue Apr 29, 2019 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@ForeverZer0
Copy link
Owner

Create a Joystick and Gamepad class to use them in a conventional and object-oriented way for the language.

@ForeverZer0 ForeverZer0 added the enhancement New feature or request label Apr 29, 2019
@ForeverZer0 ForeverZer0 added this to the GLFW.NET 3.3.1 milestone Apr 29, 2019
@ForeverZer0 ForeverZer0 self-assigned this Apr 29, 2019
@ForeverZer0 ForeverZer0 removed this from the GLFW.NET 3.3.1 milestone Jun 6, 2019
@ForeverZer0
Copy link
Owner Author

This will likely be added with the next update of the upstream. Currently, GLFW does not have an event driven callback for joysticks, which means the user has to manually poll and check for any changes. To make matters worse, this cannot be done on a separate thread due to limitations in the base library. This means it is at the complete mercy of the game loop and how often it can be polled, which is not a cheap operation, and can easily lead to input being missed between checks.

The next milestone of the upstream is supposed to have this issue fixed (was originally the 3.3 milestone, but got pushed to 3.4), so this will be implemented at that time.

@fembiba
Copy link

fembiba commented Jul 31, 2020

Any update on this?

@ForeverZer0
Copy link
Owner Author

The upstream GLFW project has not yet implemented it unfortunately.

They have recently done some work with enabling/disabling joystick input with init hints, which is likely an important precursor to this, so I do hope that they won't push it back again. Joystick polling and haptic feedback are definitely some high-desired features that have been long-requested.

@fembiba
Copy link

fembiba commented Aug 2, 2020

The upstream GLFW project has not yet implemented it unfortunately.

They have recently done some work with enabling/disabling joystick input with init hints, which is likely an important precursor to this, so I do hope that they won't push it back again. Joystick polling and haptic feedback are definitely some high-desired features that have been long-requested.

Thanks for answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants