-
-
Notifications
You must be signed in to change notification settings - Fork 49
Conversation
That looks awesome, I'll merge it in now, and try and get a release out soon. Thanks very much |
I'll also add you as a contributor. |
Btw, does an authentic xbox controller only send out a HID report if you press something or does it send out a report every few ms regardless of button presses? |
I'm not sure, I'll check it out when I get home next week, don't have my controller with me at the moment. |
I've actually managed to get a authentic xbox controller and I got some strange results. Surprisingly it gives the exact same outputs as the aftermarket one which would actually mean it was the windows build that was causing problems and not the controller. It does however send out reports only when there is some action, so that's good. I also appear to be getting different outputs than the values in the default config files, so when you get home can you verify that the everything is working properly the way the settings are now? |
Firstly I migrated the buttons and triggers objects into JSON files, and I created a third object in a JSON file named joysticks. I changed the leftx, rightx, lefty and righty vars to accept their values from the joysticks JSON file.Then I added a configure function that relies on a switch statement that determines what button to config,how many buffer reads to gather, what type it is (key,trigger or joystick) and the axis, if applicable. This then calls the analyze function which measures changes in the block and bitwise compared to a set of original buffer data. Then it calls the configure function again and so on until the config is done, at which point I use fs to overwrite the JSON files with all the values.