Change input settings type from script

For testing purposes I need a toggle between “Key or Mouse button” and “Joystick Axis”, is there any way to change this during game? (I want a Keybord/Joystick toggle ingame)

  1. declare a boolean ‘UseKeyboard’ somewhere in your input controls script
  2. switch it on any user interaction, should it be GUI switcher or a button?
  3. depends on state of UseKeyboard, read and use keyb or joystick