I have an F310 controller from Logitech, and I've noticed that when the game will respond to input from the controller when minimized, in the background, or not focused (basically all the time). There doesn't appear to be any way to fix this issue or any workarounds apart from physically unplugging the controller, even unbinding controller input (XInput Pad) doesn't prevent this, as menus will still work without any inputs set. This can be quite the problem as I've found myself in a Ranked match before after minimizing Trackmania at the main menu.