- Home /
Question by
aydenbear · Jun 10, 2018 at 02:51 PM ·
controllerbeginnermappingxbox
Controller mapping PLEASE HELP!!
ok so I am using the space shooter template for my game and the restart is r and i want it to be mapped to y on an xbox one controller this is the coding how do i change it?
void Update ()
{
if (restart)
{
if (Input.GetKeyDown (KeyCode.R))
{
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
}
}
}
Comment
Best Answer
Answer by ShadyProductions · Jun 10, 2018 at 04:50 PM
if (Input.GetKeyDown (KeyCode.R) || Input.GetKeyDown(KeyCode.JoystickButton3))
Here are the mappings for each button: