Key press being done inside a script

I’m using one of the premade rpg systems that can be found on the assets store, it’s great, but is no good when it comes to using gamepads.

Is there anyway to make a script do a key press, i mean to make unity think the key was pressed without actually doing so.

I would use this to transform the gamepad input to the input from the keys that i need.

example [not actual code]:

if joystick axis +
the up key is pressed.

Cheers.

You could easily modify the input editor to include your joystick inputs then use Input.GetAxis.

I cannot directly use the input from the gamepad, since i don’t have access to the code.

What gamepad are you using?

Xbox 360 gamepad, the problem is with the premade rpg system that i’m using, it cannot use axis at all, so i’m hoping to be able to convert the axis movement to they presses.