Help with script, please!

Gtuner Pro general support. Operation, questions, updates, feature request.

Help with script, please!

Postby marioxb » Tue Mar 12, 2024 3:07 pm

So I made a script to remap a sideways Wiimote to work as sort of a Switch NES controller, but I can't seem to flip the motion controls properly. I'd really like to play Kirby Tilt N Tumble on the Nintendo Switch Game Boy app with a sideways Wii remote. Here's what I have, which maps the buttons exactly as I want. I don't need any analog sticks or Home button.
Code: Select all
unmap SWITCH_HOME;
remap WII_A -> SWITCH_R;
remap WII_HOME -> SWITCH_SR;
remap WII_B -> SWITCH_L;
unmap SWITCH_SL;
unmap SWITCH_RX;
unmap SWITCH_RY;
unmap SWITCH_LX;
unmap SWITCH_LY;
remap WII_RIGHT -> SWITCH_UP;
remap WII_LEFT -> SWITCH_DOWN;
remap WII_UP -> SWITCH_LEFT;
remap WII_DOWN -> SWITCH_RIGHT;
remap WII_TWO -> SWITCH_A;
remap WII_ONE -> SWITCH_B;
remap WII_ACCX -> SWITCH_ACCY;
remap WII_ACCY -> SWITCH_ACCX;
remap WII_ACCZ -> SWITCH_ACCZ;

On Switch, the Game Boy Color game, Kirby Tilt N Tumble is emulated to use Joycon or Pro Controller motion controls to play the game. The original cartridge was controlled by tilting the GB to play.

But all the Accelerometer remapping I did just ends up mapping up and down properly, but not left and right. Does someone know what to do? I tried different combos of X,Y, and Z and nothing is working how I want it to.

If possible, I'd also like to have different mapping when a classic controller is plugged into the remote. Basically 1-1 mapping for that, with the exception of I still want the home button to be R3 (SR), like:
Code: Select all
remap WII_HOME -> SWITCH_SR;
remap WII_RIGHT -> SWITCH_RIGHT;
remap WII_LEFT -> SWITCH_LEFT;
remap WII_UP -> SWITCH_UP;
remap WII_DOWN -> SWITCH_DOWN;
remap WII_A -> SWITCH_A;
remap WII_B -> SWITCH_B;
remap WII_X -> SWITCH_X;
remap WII_Y -> SWITCH_Y;
remap WII_MINUS -> SWITCH_MINUS;
remap WII_PLUS -> SWITCH_PLUS;
remap WII_L -> SWITCH_L;
remap WII_R -> SWITCH_R;
remap WII_ZL -> SWITCH_ZL;
remap WII_ZR -> SWITCH_ZR;
User avatar
marioxb
Private First Class
Private First Class
 
Posts: 2
Joined: Wed Feb 28, 2024 6:30 pm

Return to Gtuner Pro Support

Who is online

Users browsing this forum: Lkidd24 and 27 guests