Giter VIP home page Giter VIP logo

unity-gamepad-controller-xbox-button-mapping's Introduction

Unity Gamepad Controller Xbox button mapping

Was tired of always searching this and taking me a long time so decided to create this for my own future use and for everyone else who needs it. This is the Unity button mapping for an Xbox 360/Xbox One controller. I guess the one that can cause a bit more confusion before knowing is that DPAD is not actually a button but an axis too.

Button Code Observations
A joystick button 0
B joystick button 1
X joystick button 2
Y joystick button 3
Left Bumper joystick button 4
Right Bumper joystick button 5
View (Back) joystick button 6
Menu (Start) joystick button 7
Left Stick Button joystick button 8
Right Stick Button joystick button 9
Left Stick “Horizontal” X Axis -1.0f to 1.0f
Left Stick “Vertical” Y Axis 1.0f to -1.0f
Right Stick “Horizontal” 4th Axis -1.0f to 1.0f
Right Stick “Vertical” 5th Axis 1.0f to -1.0f
DPAD – Horizontal 6th Axis -1.0f to 1.0f
DPAD – Vertical 7th Axis -1.0f to 1.0f
Left Trigger 9th Axis 0.0f to 1.0f
Right Trigger 10th Axis 0.0f to 1.0f

If you find any errors let me know

unity-gamepad-controller-xbox-button-mapping's People

Contributors

djlink avatar

Stargazers

 avatar

Watchers

 avatar

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.