![]() |
|
Is it possible to remap D-PAD for sideway mode only? - Printable Version +- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org) +-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support) +--- Forum: Controllers (https://forums.dolphin-emu.org/Forum-controllers) +--- Thread: Is it possible to remap D-PAD for sideway mode only? (/Thread-is-it-possible-to-remap-d-pad-for-sideway-mode-only) |
Is it possible to remap D-PAD for sideway mode only? - MAD_SLAV - 05-24-2020 Hi, I'm trying to configure right joy-con as emulated wiimote but have a problem when controller switches to sideway mode its like wiimote would rotate with the d-pad to the left side and as right joy-con have analog stick on the bottom I would prefer to have it rotate to the right side with SL SR buttons facing up. Is it possible to change wiimote rotate side in sideways mode to the right or somehow remap D-PAD in sideways mode only? Thanks RE: Is it possible to remap D-PAD for sideway mode only? - ExtremeDude2 - 05-24-2020 Do you have sideways wiimote set in dolphin? RE: Is it possible to remap D-PAD for sideway mode only? - MAD_SLAV - 05-24-2020 Sorry I've probably confused you with buttons description by shoulder buttons I meant SL SR on the joy con facing up. So what I'm trying to achive is being able to automatically switch in game from upright wiimote to sideways wiimote to the right side. Like for ex. in mario party from upright wiimote when using it as pointer to sideways wiimote to the right in mini games that are using sideways mode. So on joy-con it would look like that from upright https://imgur.com/g1c8fVk to the sideways to the right https://imgur.com/FPH9kqk Hope that clarifies it. RE: Is it possible to remap D-PAD for sideway mode only? - Rusty Potato - 05-26-2020 (05-24-2020, 10:11 PM)MAD_SLAV Wrote: Sorry I've probably confused you with buttons description by shoulder buttons I meant SL SR on the joy con facing up. From what I can tell, I think that Dolphin's toggle() and if() functions are probably your best bet. I don't know how you're binding Joy-Con buttons, so just assume that the below inputs are stand-ins for whatever your inputs are. Basically, using something similar to what I've listed below, you can toggle between a sideways and upright mode by (for example) pressing SL: if( toggle(`SL`), `Sideways Input`, `Upright Input` ) In your case, since you probably just need to rotate the control stick inputs, so just flipping the control stick inputs after the toggle should do the trick. For example: if( toggle(`SL`), `Axis Y+`, `Axis Y-` ) Hopefully this is what you need. RE: Is it possible to remap D-PAD for sideway mode only? - MAD_SLAV - 05-27-2020 Thanks for showing the way how to play around with that by modifying your method I've managed to set it up to automatically rotate/remap d-pad without toggling in/out by button .Never thought that I will learn things like that playing mario lol. If anyone would look for solution, after setting up wiimote d-pad buttons right click mouse on each button and after your regular button/axis name add ,if(`Sideways Wiimote = True`,`your regular button/axis `,`your reversed button/axis`) so in my ex. function looks like that `Right Y+`,if(`Sideways Wiimote = True`,`Right Y+`,`Right Y-`) Thanks once more : ) EDIT: It didn't work as i thought after all lol, it did remap axis but on both upright and sideways mode. Still your function with remaping by toggle works 'your regular button/axis',if(toggle(`your toggle button`),`your regular button/axis`,`your reversed button/axis`) However if anyone would know how to setup that function to automatically remap when game switches from upright to sideways mode please share. |