Remapping Motion Controls?
Posted: Sat Mar 02, 2019 1:03 am
So, im trying to get the motion control of the Wii Remote to match that of the right stick on a PS4 controller for Smash Ultimate. Back in Brawl, you could use "Shake Smash" where you shake the controller, for example, up, and it counts as hitting up on the right stick. I have it semi-working, however both up and downwards count as hitting up on the right stick. Also, while Left and Right work fine with just little shakes to the side, Up and Down need really exaggerated shakes for it to register. I dont know much for programming, but tried it out anyway, which results in these issues.
This is what I have specifically for the motion control.
This is what I have specifically for the motion control.
- Code: Select all
if (get_val(WII_ACCX) <= -1) {set_val(PS4_RX, 100);
if (get_val(WII_ACCX) >= 1) {set_val(PS4_RX, -100);
if (get_val(WII_ACCY) <= -1) {set_val(PS4_RY, 100);
if (get_val(WII_ACCY) >= 1) {set_val(PS4_RY, -100);
if (get_val(WII_ACCX) == 1) {set_val(PS4_RX, 0);
if (get_val(WII_ACCY) == 1) {set_val(PS4_RY, 0);