Android bluetooth controller

Hello

i am using the BT Controller that come with the SVR which has arrows and a few buttons, they work when i use this code:
if(Input.anyKey){
Debug.Log(“anykey”+(string)Input.inputString);
//Debug.Log(Input.GetAxisRaw);
text.text=“Anykkeyismoved”+(string)Input.inputString;
}

which returns the key i used but how do i use those keys?
it returns 45 or 24 just numbers how do i use those in android. arrows work but not the other buttons

Did you configure the axis in the Input settings?
What is SVR? :slight_smile:

Hehe sorry SVR = Snail VR which is a chinease cardboard that tries to simulate the GearVR, not even close but it has good lenses and it comes with a bluetooth controller.

The bt controller i think its not a normal one, as the it has multiple buttons that dont do anything at anytime but this code reports that they have feedback:

if(Input.anyKey){
Debug.Log(“anykey”+(string)Input.inputString);
//Debug.Log(Input.GetAxisRaw);
text.text=“Anykkeyismoved”+(string)Input.inputString;
}

This is working for movement:
voidUpdate(){
if(Input.GetKey(KeyCode.RightArrow))
{
transform.Translate(newVector3(speedTime.deltaTime,0,0));
}
if(Input.GetKey(KeyCode.LeftArrow))
{
transform.Translate(newVector3(-speed
Time.deltaTime,0,0));
}
if(Input.GetKey(KeyCode.DownArrow))
{
transform.Translate(newVector3(0,0,-speedTime.deltaTime));
}
if(Input.GetKey(KeyCode.UpArrow))
{
transform.Translate(newVector3(0,0,speed
Time.deltaTime));
}
}

This works too:

if(Input.GetKeyDown(KeyCode.Escape)){
//PauseGame();
Shooting = true;
}

But the question is how can i use the other buttons that i can get with the 1st code?