How to set input mode in C++

Also does using UI only block game pad input? And as far as instancing the class its class FInputUIOnly input only? Much like declaring a variable?