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

Joystick callbacks or make joystick input polling available to other threads #601

Open
theagentd opened this Issue Sep 9, 2015 · 9 comments

Comments

Projects
None yet
5 participants
@theagentd

Hello. We have a problem with input polling where at low frame rates joystick polling is done at such a low frequency that button presses are missed. The documentation specifically disallows calling the polling methods from other threads, which would solve the problem as I could just poll joysticks at a much higher rate from another thread at even intervals independent of frame rate. Alternatively, joystick callbacks would work too.

@elmindreda

This comment has been minimized.

Show comment
Hide comment
@elmindreda

elmindreda Dec 13, 2015

Member

I'm reworking some joystick internals in 3.2 and will look into this.

Member

elmindreda commented Dec 13, 2015

I'm reworking some joystick internals in 3.2 and will look into this.

@elmindreda elmindreda self-assigned this Dec 13, 2015

@LinusU

This comment has been minimized.

Show comment
Hide comment
@LinusU

LinusU Dec 13, 2015

Exciting 👏

LinusU commented Dec 13, 2015

Exciting 👏

@elmindreda

This comment has been minimized.

Show comment
Hide comment
@elmindreda

elmindreda Dec 13, 2015

Member

There will also be a joystick callback added in 3.2 but it has nothing to do with this issue; it's for reporting device connection and disconnection events analogous to the monitor callback.

Member

elmindreda commented Dec 13, 2015

There will also be a joystick callback added in 3.2 but it has nothing to do with this issue; it's for reporting device connection and disconnection events analogous to the monitor callback.

@badlogic

This comment has been minimized.

Show comment
Hide comment
@badlogic

badlogic Jan 5, 2016

If i may piggy back on this issue: on Windows, all gamepads are reported to have the same generic driver name. It would be awesome if the 3.2 rewrite would fix this, otherwise it's impossible to select mappings for say Xbox or PS3/4 controllers. I'm happy to send hardware if needed!

badlogic commented Jan 5, 2016

If i may piggy back on this issue: on Windows, all gamepads are reported to have the same generic driver name. It would be awesome if the 3.2 rewrite would fix this, otherwise it's impossible to select mappings for say Xbox or PS3/4 controllers. I'm happy to send hardware if needed!

@badlogic badlogic referenced this issue Jan 5, 2016

Open

Finish LWJGL 3 backend and request for testing #3673

10 of 14 tasks complete
@elmindreda

This comment has been minimized.

Show comment
Hide comment
@elmindreda

elmindreda Feb 28, 2016

Member

The joystick callback is ready for use in the dekdevy branch. The only reason it hasn't been merged yet is because DirectInput support isn't done.

Member

elmindreda commented Feb 28, 2016

The joystick callback is ready for use in the dekdevy branch. The only reason it hasn't been merged yet is because DirectInput support isn't done.

@elmindreda elmindreda added this to the 3.2 milestone Feb 28, 2016

@elmindreda elmindreda modified the milestones: 3.3, 3.2 Mar 18, 2016

@elmindreda

This comment has been minimized.

Show comment
Hide comment
@elmindreda

elmindreda Mar 18, 2016

Member

@badlogic I will look into getting better controller names for 3.2. Thank you for the offer of hardware! I may take you up on that when I start on the remapping work for more SDL2-ish input.

Member

elmindreda commented Mar 18, 2016

@badlogic I will look into getting better controller names for 3.2. Thank you for the offer of hardware! I may take you up on that when I start on the remapping work for more SDL2-ish input.

@elmindreda

This comment has been minimized.

Show comment
Hide comment
@elmindreda

elmindreda Mar 31, 2016

Member

@badlogic XInput with DirectInput fallback has been merged, which should have improved the returned device names.

Member

elmindreda commented Mar 31, 2016

@badlogic XInput with DirectInput fallback has been merged, which should have improved the returned device names.

@httpdigest

This comment has been minimized.

Show comment
Hide comment
@httpdigest

httpdigest Apr 28, 2016

Any progress on the buffered data/event-based DirectInput implementation?

Any progress on the buffered data/event-based DirectInput implementation?

@elmindreda

This comment has been minimized.

Show comment
Hide comment
@elmindreda

elmindreda Apr 29, 2016

Member

@httpdigest Not yet, have to get 3.2 out first.

Member

elmindreda commented Apr 29, 2016

@httpdigest Not yet, have to get 3.2 out first.

@elmindreda elmindreda removed this from High Priority in Review Queue Feb 1, 2017

@elmindreda elmindreda referenced this issue Oct 17, 2017

Open

3.3 release coordination #1098

5 of 9 tasks complete

@elmindreda elmindreda removed their assignment Oct 26, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment