Controlled Input : Controller and Keyboard/Mouse

Hey guys :slight_smile:

I need some help in setting up input ā€¦

I want a setup where** either you play only via the Keyboard and Mouse** or you play with a connected controller. For instance , I use my PS3 controller on my laptop and it is really annoying when I accidentally press the spacebar and it affects the game. Is it possible to make a class of axes and two objects PC and Controller?

Iā€™m new to Unreal and this is my first thread.
Thanks