Skip to content
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.

Configuration Function #8

Merged
merged 14 commits into from
Nov 16, 2013
Merged

Configuration Function #8

merged 14 commits into from
Nov 16, 2013

Conversation

bolbola
Copy link
Collaborator

@bolbola bolbola commented Nov 16, 2013

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.

@andrew
Copy link
Owner

andrew commented Nov 16, 2013

That looks awesome, I'll merge it in now, and try and get a release out soon.

Thanks very much

andrew added a commit that referenced this pull request Nov 16, 2013
@andrew andrew merged commit a881a4b into andrew:master Nov 16, 2013
@andrew
Copy link
Owner

andrew commented Nov 16, 2013

I'll also add you as a contributor.

@bolbola
Copy link
Collaborator Author

bolbola commented Nov 19, 2013

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?

@andrew
Copy link
Owner

andrew commented Nov 19, 2013

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.

@bolbola
Copy link
Collaborator Author

bolbola commented Nov 23, 2013

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants