Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wii addon refactor and button/analog mapping support #501

Merged
merged 23 commits into from
Sep 9, 2023
Merged

Wii addon refactor and button/analog mapping support #501

merged 23 commits into from
Sep 9, 2023

Conversation

mikepparks
Copy link
Contributor

This also includes support for mapping the following extension controllers:

  • Guitars (GH/GHWT)
  • Drums (GHWT/BH)
  • Taiko drum (TnT)
  • Turntables (DJH)

Added GHWT touch fret support.
Added initial Wii extension hot plugging support.
Fixed issue with detecting GHWT guitars.
Fixed issue with guitar analog values.
…ion, default is used (implemented per-controller). Verifies calibration checksum to determine which is used.
…ice. Fixed issue where adjusted input values would overflow after calibration.
… calibration exists on device. Implemented default button mapping config in prep for web-config mapping options.
Included separation of Wii addon-specific L10n strings to Locales/en/Addons/WiiAddon.jsx
Updated documentation to remove Wii controller mapping details and add new image.
Copy link
Contributor

@arntsonl arntsonl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Small changes for styling but its a great refactor

lib/WiiExtension/WiiExtension.h Show resolved Hide resolved
lib/WiiExtension/WiiExtension.h Show resolved Hide resolved
lib/WiiExtension/WiiExtension.h Show resolved Hide resolved
// unknown
}

#if WII_EXTENSION_DEBUG==true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for cleanliness, we'll probably want to remove this before release if you're not using it. Okay to keep it into this refactor!

proto/config.proto Show resolved Hide resolved
src/addons/wiiext.cpp Outdated Show resolved Hide resolved
src/addons/wiiext.cpp Show resolved Hide resolved
www/src/Addons/Wii.tsx Outdated Show resolved Hide resolved
www/src/Addons/Wii.tsx Outdated Show resolved Hide resolved
@@ -43,91 +47,280 @@ export const wiiState = {
wiiExtensionSpeed: 400000,
};

const WII_EXTENSION_CONTROLS = [
Copy link
Contributor

@Pelsin Pelsin Sep 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added ways for us to normalize formating, try running npm run format
Some have reported it not really working, but worth trying!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd have to go through this manually because it breaks up formatting in a way that isn't very easy on my eyes.

www/src/Addons/Wii.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@arntsonl arntsonl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you for updating things!!

@arntsonl arntsonl merged commit dca1fdd into OpenStickCommunity:main Sep 9, 2023
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants