Possible to add input controls to enum?

Question 1: I am trying to make a public enum so the user can use a dropdown to select any of the available input controls defined in the project settings. For example Fire1, Jump, SpawnEnemy, etc. I know how to add them manualy but I want to know if I can use them somehow.

Question 2: I’ve made another enum (buttonTrigger) with three button states. This one I did enter manualy (GetButton, GetButtonUp, GetButtonDown) Can I replace the GetButtonUp(see example below) with the value from the buttonTrigger enum? I’ve tried (Input.buttonTrigger.ToString(“Fire1”)) but that doesn’t work. How can I replace the identifier with a string?

Thanks a lot for any help!

void Update()
{
if (Input.GetButtonUp(“Fire1”))
{
Spawn();
}
}

Well, you need some way of settings the enums value, so, not really, but what you can do is

if ( Input.GeyKeyDown ( Input.GetKey ( KeyCode.X ) ){
   setEnumValue . . . 
}else{
   setEnumValue . . .
}


//....In check function

if ( enumIsWhatIWantActive ){
   //.... do whatever
}

Thanks Montraydavis, I’ll give that a try!