Git Product home page Git Product logo

unisense's Introduction

UniSense: DualSense plugin for Unity InputSystem

This plugin enables Unity apps to use DualSense, the controller for PS5 in Windows.

This project is incomplete state for now. For example:

  • the documentation including this README is work in progress.
  • The code is yet to be optimized.

Any contribution is appreciated. Please do not hesitate to send PR if you have any proposal regarding this project.

Requirements

  • Unity 2019.1 or above
  • Input System v1.0.1 or above

Installation

You can install this package using Unity Package Manager (UPM).

  1. On Unity Editor, open UPM window by going to Window > Package Manager
  2. In this window top left corner, click on the + button and select Add package from git URL...
  3. Enter this url https://github.com/nullkal/UniSense.git

Samples

A main sample is available. There, you can see how to use the DualSense main features.

On the UPM windows, select Input System-UniSense package, go to the Samples section and import the DualSense Main Sample.

Special thanks

unisense's People

Contributors

hyagooliveira avatar nullkal avatar prnthp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

unisense's Issues

Wireless input assignment incorrect

Hello!

I was trying to use my PS5 Controller under Windows 10 with Unity 2020.3.7f1 after installing the UniSense package over the Package Manager. But I seem to still struggle with the same issues as without UniSense, even tho the DualSense Controller seems to be recognized correctly now. Some weird assignments I could find in the Input Debugger:

  • Moving left stick left/right is shown as moving left stick up/down, same with the right stick
  • Left stick x-axis seems to get some random input (maybe from accel), so it is just spaming with random numbers from -1 to 1
  • Pressing left trigger is shown as pressing right trigger and mic mute button
  • Pressing south button (x/cross for playstation) is shown as start button
  • and other stuff

Where does this come from? Do I have something configured wrong? Is there a way to assign the inputs myself to fix this mapping?

Any help would be appreciated, thanks in advance!

Max

Rumble not working?

I tried your sample and the haptic trigger works brilliantly, but I noticed that the rumble slider seems to do nothing.
Could you check it out? Thanks in advance.

Documentation

A basic documentation would be nice, as it's really hard to understand.

Works in editor, but not in builds

As the title says, the plugin works in the Unity Editor (I'm using 2021.1.12f1) but not in builds. I've tested builds on macOS and Windows, wired and wireless. None of them seem to work. There aren't any preprocessors that I could see that would exclude code from builds.

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.