Giter Club home page Giter Club logo

Comments (4)

slouken avatar slouken commented on September 13, 2024 1

Fixed!

from sdl.

furious-programming avatar furious-programming commented on September 13, 2024

There is a one more problem — SDL sends power level event with the SDL_JOYSTICK_POWER_WIRED value when the battery is fully charged. This controller supports only wireless connection (USB cable is for charging only), so I wonder if SDL should actually provide this value.

Honestly, I was expecting the value SDL_JOYSTICK_POWER_FULL or SDL_JOYSTICK_POWER_MAX, but maybe I don't understand something (the documentation lacks descriptions of these constants).

from sdl.

slouken avatar slouken commented on September 13, 2024

This is not a bug. This controller switches between XInput and PS3 mode. In PS3 mode rumble is not supported and there are extra axes to represent pressure on the buttons.

This is clearer with the SDL3 testcontroller test application, and the buttons shown match the PS3 button mapping in the manual.

from sdl.

slouken avatar slouken commented on September 13, 2024

Actually, I noticed that the triggers aren't detected properly and the controller doesn't actually support pressure sensitive buttons. I'll go ahead and fix these up and change the power level to unknown, since it doesn't report that information as far as I can tell.

from sdl.

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.