This repository has been archived by the owner on Mar 14, 2021. It is now read-only.
forked from AmigaPorts/SDL_old
-
Notifications
You must be signed in to change notification settings - Fork 4
Gamepadlib 4 SDL support #1
Open
jacadcaps
wants to merge
195
commits into
BSzili:mos-sdl2
Choose a base branch
from
jacadcaps:mos-sdl2
base: mos-sdl2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TODO : compile with GCC 8 ?! (altivec)
dont know if it's necessary (not reference to AmigaOS4)
define here uint32 and int32 ? not sure....
Same here.. dont know why i need to redefine this
Bug OpenTTD when game is in state "pause" - Surface (mouse) doesnt update
Add gamecontrollerdb.txt to load first from ENV:
Need by SDL_JoystickName
Code from AmigaOS4 version to simplify the function
Add more debug SensorType
Missing SDL_SENSOR_DUMMY
Fixed the battery sensor crash
My lasts tests :
|
Sorry, I've been away for a while. Will try to address the outstanding issues within the next couple of days. |
Fixed early init - let me know if this is OK now. I've also received the aliexpress x360 gamepad, but it does not work :) (does not power on) |
ok it's better but... when i have 2 gamepad.... only 1 is detected. I find (maybe the problem) "return" here... : https://github.com/jacadcaps/SDL/blob/mos-sdl2/src/joystick/morphos/SDL_sysjoystick.c#L83 Arrff, no chance with aliexpress... |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implemented gamepad support based on gamepadlib.
Fixed a crash in SDL_Error.
Tested with XB1 and PS4 gamepads and the testgamecontroller. Both work fine. PS4 has the small share/options buttons swapped but that's either gamepadlib or sensors (ran out of time to check, but will fix that).
Did not test rumble and battery but they both should work. Will test and fix those soon if they fail.