|
I'm having trouble mapping all the buttons/triggers in Unity's Input settings. Can anyone help me out on this one? Here's what I have so far: A Button joystick button 0 B Button joystick button 1 X Button joystick button 2 Y Button joystick button 3 L Button joystick button 4 R Button joystick button 5 Back joystick button 6 Start joystick button 7 Left Analog pressed joystick button 8 Right Analog pressed joystick button 9 Left Analog X Axis Joystick Axis, X Axis Left Analog Y Axis Joystick Axis, Y Axis Right Analog X Axis Joystick Axis, 4th Axis Right Analog Y Axis Joystick Axis, 5th Axis What I don't have are the left and right triggers, and the center X/Home Button
(comments are locked)
|
|
Left/Right on D-Pad Joystick Axis, Axis 6 Up/Down on D-Pad Joystick Axis, Axis 7
(comments are locked)
|
|
Left Trigger and Right Trigger both correspond to joystick axis, axis 3
(comments are locked)
|
|
in case anyone comes here looking for more button mappings for the xbox 360 controller, here's what worked for me (using the tattie-bogle driver for osx):
(comments are locked)
|
|
The triggers are not buttons, they are additional analog joystick axes, either 6th and 7th, or 7th and 8th. However they operate between 0-1 instead of -1 to 1. The home button, I am not sure about, it may be a special mapped button and not accessible. Also, are you on a Mac, or PC? On a mac, using the open source library, the mappings may be different, as well. I haven't tested the PC bindings, so I am not sure - Tattie Bogle OSX 360 controller driver I am using this code if (Input.GetAxis("L Trigger")){ moveDirection.y = jumpSpeed; } But I am not getting a response using any of 6 through 8 axis.
Nov 21 '09 at 03:20 AM
apiotuch
Try assigning them in the input editor, and referencing them from there. I have gotten a response from both triggers.
Nov 21 '09 at 03:35 AM
Brian Kehrer
The triggers are what I'm trying to script for.
Nov 21 '09 at 03:41 AM
apiotuch
(comments are locked)
|
|
i've been trying to map my xbox 360 controller to my unity project (on a mac) and am using tattie bogle's driver as well. thanks to gyro (and a few other sources) help, i think i got it. i made a visual, for anyone else that needs it. if you see an error in here, let me know.
(comments are locked)
|
1 2 next page »
