Comments (5)
"The relevant entry is already in SDL 2.04:" :)
Also, the issue is outdated as many (many) new PS4 controllers have been added recently.
edit: If you are still experiencing problems overriding the DB, please contact SDL devs on forums/mailing lists as that is likely a bug (rather than a database issue).
from sdl_gamecontrollerdb.
I do not have access to a PS4 controller to verify what the right mapping is. The actual usage of the gamecontrollerdb.txt file is up to the application (SDL by default will load gamecontrollerdb.txt, but that can be overriden).
from sdl_gamecontrollerdb.
The relevant entry is already in SDL 2.04:
"4c05000000000000c405000000000000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
This is related to #102.
from sdl_gamecontrollerdb.
On the subject of the "right" mapping, it's a matter of opinion. On my PS4 controller (which admittedly has a slightly different GUID - see #113), b12 is the PlayStation logo button, which is an appropriate choice for Guide as it matches the PS3 mapping and the Xbox controller's Guide button also features a system logo.
The unmapped b13 is the clickable touchpad, which sits between Share and Options in roughly the same location as the Xbox Guide button. It's also a large and easy target to hit, so it's appealing to have it mapped.
Personally, I would have chosen to map the buttons based on my experience with native PS4 games: touchpad (b13) to Start, Options (b9) to Back, PS (b12) to Guide, with Share (b8) unmapped. That suggested mapping isn't geographically similar to an Xbox controller, but it pairs the most-frequently used actions with the most accessible buttons.
from sdl_gamecontrollerdb.
What was the resolution of this issue?
from sdl_gamecontrollerdb.
Related Issues (20)
- Potentially incomplete DPad Entries HOT 1
- 8BitDo Ultimate 2.4g DInput Bluetooth mappings HOT 8
- megworld logic3 pull deleted HOT 2
- Add mapping for Final Fantasy XIV game controller HOT 7
- Add mapping for Kite Circuit Sword HOT 1
- Missing mapping for Xbox Elite Controller HOT 5
- Add device layout information to DB HOT 2
- 8BitDo Ultimate C Wired Linux HOT 2
- Mapping for Xbox Elite detected as Bluetooth LE XINPUT compatible input HOT 3
- --
- Unexpected mapping value `dev:none`
- mapping for Mayflash Wii Classic Controller HOT 3
- Select and Start button are inverted when automapping with SDL using Dualshock2 and PS2 to PC converter HOT 1
- Add another Xbox One Controller HOT 1
- Add new Nacon controller Revolution 5 Pro HOT 5
- Admin migration HOT 2
- "DragonRise Inc. Generic USB Joystick" for linux HOT 2
- How is the GUID matched? HOT 1
- Add DualSense Edge Controller to Windows, MacOS, and Linux HOT 2
- Xbox Series Controller with Capture button HOT 1
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_gamecontrollerdb.