This disables native controller support in Stardew Valley, allowing you to use joy2key or similar programs to remap the input. Tested on linux, should work on windows too.
Permissions and credits
Author's instructions
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution.
File credits
This author has not credited anyone else in this file
Donation Points system
This mod is not opted-in to receive Donation Points
Donations
No donations accepted
Ever wanted to change the keybindings in SDV? Ever wanted to run a dualseat game with one player using a gamepad and the second player using the keyboard?
This mod asks MonoGame.Framework to disable gamepads added via SDL2 (linux), and tries to trick XInput (windows) into thinking the gamepade has disconnected and won't be back before 17-Aug-292278994. Note that I don't have a windows machine to actually try it on, so YMMV.
There is no configuration for this mod, since the request to disable the gamepad is a one-way operation in MonoGame.Framework. Just install it like any other SMAPI mod and launch the game, the controller shouldn't respond.
I've included the source in the download, if someone wants to add support for disabling gamepads on other platforms, or disabling mouse/keyboard, whatever, drop me a line with a patch and I'll add it.