posted 3 years ago
So I have a singleplayer game on XBOX GamePass for PC that only supports a controller. I am really bad at a controller, and would like to use a keyboard instead. I see no harm as it is a singleplayer game. I can make the code for key binding keyboard keys to controller buttons, but I don't know how to receive keyboard and mouse input, and I don't know how to tell the computer that a controller in plugged in, and that it is receiving controller input. I also don't know how to make the app receive input while it is not the selected application, as I will be playing on the browser, not playing on this app. Any help is appreciated, thanks!