I am trying to use my Steel Series Nimbus as a wireless remote for my iOS game but I can't get the input to work. The left and right stick work just fine but none of the buttons, triggers or bumpers work at all. I think it is something to do with my Input Manager Settings. If anyone can help it would be much appreciated if you could give me an answer.
Many Thanks,
Tommy :)
but none of the buttons, triggers or bumpers work at all. I think it
is something to do with my Input Manager Settings.
Maybe you are not reading them correctly? Use the code below to find out all the Steel Series Nimbus Joystick button KeyCodes
then use the KeyCode
to detect when the Button is pressed.
Simply connect the Controller, Create simple Text
on the screen then drag it to the text
slot. Build and Run. While running, press buttons on the controller and write down their KeyCodes
. These KeyCodes
you should then use to properly detect button that is pressed later on. You can learn more about iOS controller support here.
public class KeyCodeFinder : MonoBehaviour
{
public Text text;
Array allKeyCodes;
void Start()
{
allKeyCodes = System.Enum.GetValues(typeof(KeyCode));
}
void Update()
{
foreach (KeyCode tempKey in allKeyCodes)
{
if (Input.GetKeyDown(tempKey))
{
text.text = "Pressed: KeyCode." + tempKey;
Debug.Log("Pressed: KeyCode." + tempKey);
}
}
}
}
It wont work unless you are testing your build directly on Apple tv or an iOS device.
I made a test scene that detects the joystick button 0 and so on and I can confirm this are the numbers for the keys for the nimbus.
I will help you out by writting them down here :)
Joysticks axis
Joystick Left X axis, Y axis
Joystick Right X 3rd axis, Y is 4th axis
Dpad
UP _ joystick button 4
LEFT _ joystick button 7
DOWN _ joystick button 6
RIGHT _ joystick button 5
L1 _ joystick button 8
L2 _ joystick button 10
R1 _ joystick button 9
R2_ joystick button 11
X_ joystick button 15
Y_ joystick button 12
A_ joystick button 14
B _ joystick button 13 // careful this is back button on apple tv and returns to dashboard
Menu center button _ joystick button 0
I am trying to figure out how to make menu and B buttons not take you out of the app