forked from dolphin-emu/dolphin
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP wiimote tas input. Code mostly from bzb95.
- Loading branch information
1 parent
74f8a48
commit c5ba452
Showing
5 changed files
with
577 additions
and
979 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
c5ba452
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad to see you have found some time to work on this! It might be worth it to change a few variables like "wii" to "isWii" and "created" to "hasLayout" or something of that nature.
Other than that(which are my mistakes) looks good. It will be nice not to get emails begging me to implement this :P
c5ba452
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this is just my first pass through it. Was lots of changes to go through. Thanks for sharing the code, i wish you did sooner!
c5ba452
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had been trying to pawn the code off on everyone who asked.
Also something I think would make the code look cleaner is if we got rid of all the enum constants except ID_MAIN_STICK and ID_GC_C_STICK. All the other ones can just be set to elementId++ each time. Which would save us from having to pass 5 variables like in TASInputDlg::CreateStick(int id_stick, int id_xSlider, int id_ySlider, int id_xText, int id_yText).
However, I don't know if everyone would agree with me on that one. Some people might like the enum even if its unnecessary.
c5ba452
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Promise to leave you alone after this, but here is a patch doing what I said above and a few other things. Feel free to not use it if you like the enum better.
https://www.mediafire.com/?e2j8d9b8g4najbj
c5ba452
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, i didn't like the idea, but i guess it's okay. Thanks for that.