Comments (6)
I picked up the Apex 4 controller, and it looks like the third interface only has gyro data when mouse mode is enabled. I verified this on both Windows and Linux. I haven't installed the Space Station software or anything, so this is the default firmware out of the box.
The reason why SDL only sees the first interface is because the third interface is using a custom vendor-specific usage page and usage, and that's being ignored right now.
from sdl.
If you can figure out what needs to be sent to the controller to enable gyro data with the mouse mode off, then we could create an SDL hidraw driver that supports the back buttons and the gyro simultaneously.
from sdl.
I picked up the Apex 4 controller, and it looks like the third interface only has gyro data when mouse mode is enabled. I verified this on both Windows and Linux.
Hmmm that's strange on Linux I saw what I assumed was gyro data (but might be wrong) on the 3rd interface with mouse mode off .
I treated with the hid-recoeder
And moving the controller around changed the values
from sdl.
I believe you, but maybe something put the controller into a mode where it reports that data? Maybe a firmware update, or the Windows app turning on DS mode?
from sdl.
Yes I will investigate I don't think it's ds mode as I currently have that off and I don't think that affects Linux anyway
It could be firmware update.
EDIT:
fwiw this is the output I am talking about that I think is gyro
https://asciinema.org/a/RSp7loKVR1IufltoVpFNOphK6
for that test I had the controller wired and I only moved the controller around. i did not touch any of the sticks or buttons.
I also had the gyro mouse off
I then repeatedly placed the controller on a table lifted it up and placed it back down
I saw some of the values going to 0 when placed on a table and then changed when picked up.
So this is gyro correct? I just want to make sure because I might be wrong lol like I saId no experience with any of this lol
EDIT2: this is my settings in the app
I wonder if the gyro mapping has anything to do with it...
EDIT3: Intresting that it! if I have gyro mapping disabled in the software I no longer get gyro( or whatever that data was) without toogleing the gyro mouse first in hid recorder
so it seems a gyro mapping has to be set in the software from my testing it doesn't seem to matter what mapping you set (there is mouse, left stick, and right stick) It also doesn't seem to matter if its in "Racing mode" or "FPS mode" for the gyro
from what I understand from reviews and the manual the difference should be fps mode is full gyro in all directions, and racing should be just for left and right tilts
the strange thing is I don't need to press the toggle button that set for this (in my case is LB) to get the gyro output in hid recorder
from sdl.
would this be enough to get gyro support added in a SDL driver?
not sure if this is "true" gyro or just the same thing as the mouse mode when you press the circle button
from sdl.
Related Issues (20)
- SDL_Renderer vulkan backend fails while re-entering the app on android HOT 7
- Gamepad not recognized by SDL but via Linux and gtk HOT 2
- Clarification of thread safety of SDL_GetStringRule HOT 4
- [Suggestion] Make SDL_GetWindowOpacity() return the opacity value, instead of using an out parameter. HOT 2
- Is SDL_GetWinRTFSPath() still needed? HOT 1
- ios wrong documents path
- Emscripten input callbacks HOT 1
- Locale change causes Android app to restart, despite configChanges settings
- Get function conventions? HOT 5
- SDL_EVENT_WINDOW_LAST is defined as SDL_EVENT_WINDOW_PEN_LEAVE instead of SDL_EVENT_WINDOW_HDR_STATE_CHANGED HOT 2
- SDL_GetStringRule for SDL_GetJoysticks(), etc.? HOT 19
- Build failed for arm64ec target architecture HOT 4
- SDL3 SDL_Init crash on ios 15 HOT 3
- `SDL_PrintString` ignores `SDL_FormatInfo.left_justify`
- [audio][multichannel] SDL_AudioSpecsEqual failed assertion in SDL_PlaybackAudioThreadIterate due to missing stream channel map HOT 3
- Android Vukan renderer doesn't respect Landscape HOT 5
- Could you provide SDL_URIToLocal to SDL 3 in Windows too, please HOT 3
- Address sanitizer reports memory leak on Linux with SDL_WINDOW_OPENGL HOT 2
- Sub-pixel motions are lost or amplified on X11 if application uses absolute motion and pointer warp HOT 7
- Why does SDL try to make reference to emscripten webgl if I've disabled all renderers? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdl.