Skip to content
This repository has been archived by the owner on Mar 12, 2023. It is now read-only.

WiiMote Lua support and other changes #22

Merged
merged 6 commits into from
May 16, 2022
Merged

WiiMote Lua support and other changes #22

merged 6 commits into from
May 16, 2022

Conversation

malleoz
Copy link
Collaborator

@malleoz malleoz commented May 16, 2022

These are commits cherry-picked from Xander's fork.

Feature changes:

  • Lua controller function calls now apply to all controllers by default
  • Lua controller functions now accept a controllerID as an argument
  • Lua controller functions now work for WiiMotes and extensions (not Classic Controller yet)
  • RenderText allows you to modify position, size, color of text drawn on-screen (I particularly am hopeful that this feature will allow for more intuitive on-screen displays)
  • Get Wiimote decryption key
  • Set IR values via bytes

MikeXander and others added 6 commits May 15, 2022 13:46
Optionally include a controller id (starting at zero) in: PressButton, SetMainStickX/Y, and SetCStickX/Y

This allows you to input with different controllers independently in a script
- You can now control wiimote + nunchuk inputs from Lua (joystick/buttons/ir/accel)
- classic controllers can easily be implemented later
- fix wiimote TAS input holding down all buttons
- add a method for reading extension encryption keys
Add methods to read the wiimote and nunchuk accelerometer data.

Instead of returning -1 when GetIR is called on an input poll for a different controller than desired, return nil
- control position, colour, and size (roughly) directly from lua
- works on OGL and D3D11 for sure
Allow a script to input the specific bytes in case dolphin's default behaviour for choosing a coordinate is insufficient
@vabold vabold merged commit 36cb1ed into master May 16, 2022
@vabold vabold deleted the malleoz/wiimote_lua branch May 16, 2022 05:42
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.

3 participants