
This was my proof of concept in order to make sure the idea was even possible. much harder to integrate changes to the love codebase for people making their own exe if the love devs don't accept the changesįirst, this is just an alpha so for now it flat out replaces the joystick module.
#Download xinput test code#
need to write new input code in love apps to support xbox functionality easy for love devs to pull changes safely can be built API compatible with Joystick inability to easily use old SDL joystick code may break existing non-xbox controller functionality still works with all your existing love code In either case, if the love devs don't want to pull in my changes, adding support for my changes will require building your own love executable.

Also, SDL and Xinput can coexist side by side, so I'm thinking at this point rather than making a replacement module for joystick (so that love.joystick.* just magically works with a 360 controller), making a completely new module (love.xinput.*). Extra benefits will be proper support for all those fun xbox accessories with USB connectors (like wheels, guitars, etc).Īs I'm writing a drop-in replacement module for Joystick, I'm realizing more and more than the xinput paradigm doesn't match that of SDL. The benefit of this will be: Proper working triggers on xbox controllers, as well as support for gamepad vibration. First of all, I would like to say thanks to Zachery Littell for his Fight Stick that helped me with the XInput communication.Hey all, because there isn't native support for Xinput in Love, and thus Xbox controllers, I've decided to add it. I will suffer a lot without his code because I did not know for where begin. I ported his code from a TeensyLC to a STM32F103C8T6 development board. The HID was a little tricky but is working. It sends commands from the racing wheel to PC, but it can’t read the commands that comes from PC, like led position or motor rumble.
#Download xinput test how to#
The objective of this post is on how to make the electrical part of the racing wheel. #Xinput test controller 1 not connected how to In a later post, I will talk about the structure. If you want to learn how the controller’s communication works, go to the Littell’s blog where he gives a good explanation of how it works. I am working with a low-cost development board based on a STM32F103C8T6.


I always worked with Arduino boards but I was facing some problems. Then the group that I work decided to work with this dev board because it is “better” than an Uno, and it has a debugger interface. The downside of this microcontroller is the community, it is nothing compared with the Arduino community. Other difficult of this microcontroller is the IDE, it is more complex compare with the Arduino IDE, you need to set all the peripherals by hand. This project needs a development board that has the function of client USB. We can program the microcontroller to be any device.
#Download xinput test driver#
To download the code to the board we will need the IDE uVision 5 from Keil and the driver of the ST-link programmer, I wrote a post showing where to download all softwares needed to work with this dev board.ĭownload the code from GitHub and extract to a folder.Īfter you download the code to the board, your PC will think that the board is an Xbox 360 controller. Open uVision and click in Project -> Open project, search the folder that you extracted and go to the “MDK-ARM” folder, open the uVision project file “stm32_xinput“ inside this folder. #Xinput test controller 1 not connected how to.
