10000 Generic sdl2 game controller support on compatible devices · Issue #4435 · ihhub/fheroes2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Generic sdl2 game controller support on compatible devices #4435

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

Open
1 task done
romadu opened this issue Oct 16, 2021 · 3 comments
Open
1 task done

Generic sdl2 game controller support on compatible devices #4435

romadu opened this issue Oct 16, 2021 · 3 comments
Labels
improvement New feature, request or improvement logic Things related to game logic
Milestone

Comments

@romadu
Copy link
romadu commented Oct 16, 2021

Preliminary checks

Describe the problem requiring a solution

This #ifdef restriction means that sdl2 game controller is only initialised on Vita or Switch, and not on other systems with compatible sdl2 game controllers. Perhaps game controller support can be made more generic.

#if defined( FHEROES2_VITA ) || defined( __SWITCH__ )

Describe the possible solution

By removing this #ifdef I am able to initialise game controller support on linux handheld devices. However, I'm not sure if that's the best solution for all use cases.

Additional info

#if defined( FHEROES2_VITA ) || defined( __SWITCH__ )

@romadu romadu added the improvement New feature, request or improvement label Oct 16, 2021
@ihhub
Copy link
Owner
ihhub commented Oct 16, 2021

Hi @romadu , we went through this discussion in the past and as far as I know the problem is that some systems recognize extra controllers making difficult to play the game. Are you on Linux?

@romadu
Copy link
Author
romadu commented Oct 17, 2021 via email

@ihhub ihhub added this to the 1.0 milestone Oct 19, 2021
@ihhub ihhub added the logic Things related to game logic label Oct 19, 2021
@ihhub
Copy link
Owner
ihhub commented Oct 19, 2021

Some discussion about controllers are made in #2455.

@ihhub ihhub modified the milestones: 1.0, 1.0.1 Dec 20, 2022
@ihhub ihhub modified the milestones: 1.0.1, 1.0.2 Feb 8, 2023
@ihhub ihhub modified the milestones: 1.0.2, 1.0.3 Mar 12, 2023
@ihhub ihhub modified the milestones: 1.0.3, 1.0.4 Apr 11, 2023
@ihhub ihhub modified the milestones: 1.0.4, 1.0.5 May 13, 2023
@ihhub ihhub modified the milestones: 1.0.5, 1.0.6 Jun 14, 2023
ihhub added a commit that referenced this issue Jul 2, 2023
close #4435

We were facing issues with controllers when software cursor mode was not set. In the past we were toggling between hardware and software cursor modes. However, now if software cursor mode is set we never set if off. In this case it is safe to enable controller support for such cases.
@ihhub ihhub modified the milestones: 1.0.6, 1.0.7 Jul 15, 2023
@ihhub ihhub modified the milestones: 1.0.7, 1.0.8 Aug 14, 2023
@ihhub ihhub modified the milestones: 1.0.8, 1.0.9 Sep 11, 2023
@ihhub ihhub modified the milestones: 1.0.9, 1.0.10 Oct 11, 2023
@ihhub ihhub modified the milestones: 1.0.10, 1.0.11 Nov 18, 2023
@ihhub ihhub modified the milestones: 1.0.11, 1.1.0 Dec 23, 2023
@ihhub ihhub modified the milestones: 1.1.0, 1.1.1 May 22, 2024
@ihhub ihhub modified the milestones: 1.1.1, 1.1.2 Jul 13, 2024
@ihhub ihhub modified the milestones: 1.1.2, 1.1.3 Sep 15, 2024
@ihhub ihhub modified the milestones: 1.1.3, 1.1.4 Oct 23, 2024
@ihhub ihhub modified the milestones: 1.1.4, 1.1.5 Nov 27, 2024
@ihhub ihhub modified the milestones: 1.1.5, 1.1.6 Dec 30, 2024
@ihhub ihhub modified the milestones: 1.1.6, 1.1.7 Feb 16, 2025
@ihhub ihhub modified the milestones: 1.1.7, 1.1.8 Mar 23, 2025
@ihhub ihhub modified the milestones: 1.1.8, 1.1.9 May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement New feature, request or improvement logic Things related to game logic
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
0