Code Monkey home page Code Monkey logo

Comments (5)

p-groarke avatar p-groarke commented on July 24, 2024 1

"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.

gabomdq avatar gabomdq commented on July 24, 2024

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.

baskerville avatar baskerville commented on July 24, 2024

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.

Hopper262 avatar Hopper262 commented on July 24, 2024

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.

gingerbeardman avatar gingerbeardman commented on July 24, 2024

What was the resolution of this issue?

from sdl_gamecontrollerdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.