Dolphin, the GameCube and Wii emulator - Forums

Full Version: Inverting Mousebuttons?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm currently playing Link's Crossbow training on Dolphin, it works like a dream :p

But i like to have Fire on the left mouse button, so:

LMB = B
RMB = A

where can i change this?

I also tried switching the mousebuttons in Windows, doesn't work in dolphin.


edit:

forget about my post, just figure it out:

in Plugin_wiimote/emulated wiimote/fillreport.cpp

change:

Code:
#ifdef _WIN32
        if ((Key == EWM_SHAKE && GetAsyncKeyState(VK_MBUTTON))
            || (Key == EWM_A && GetAsyncKeyState(VK_LBUTTON))
            || (Key == EWM_B && GetAsyncKeyState(VK_RBUTTON)))
            Ret = 1;
#endif

to

Code:
#ifdef _WIN32
        if ((Key == EWM_SHAKE && GetAsyncKeyState(VK_MBUTTON))
            || (Key == EWM_A && GetAsyncKeyState(VK_RBUTTON))
            || (Key == EWM_B && GetAsyncKeyState(VK_LBUTTON)))
            Ret = 1;
#endif

and rebuild the wiimote plugin only. thats it Wink
...you could just swap buttons in windows or use a program to do that for you...
as you can read above, changing it in windows doesn't affect dolphin.
Perhaps all games and programs which using Direct Input.
(02-02-2010, 07:56 AM)NexXxus Wrote: [ -> ]as you can read above, changing it in windows doesn't affect dolphin.
Perhaps all games and programs which using Direct Input.

use a program then Tongue