Dolphin, the GameCube and Wii emulator - Forums
Inverting Mousebuttons? - 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: General Discussion (https://forums.dolphin-emu.org/Forum-general-discussion)
+--- Thread: Inverting Mousebuttons? (/Thread-inverting-mousebuttons)



Inverting Mousebuttons? - NexXxus - 02-02-2010

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


RE: Inverting Mousebuttons? - DacoTaco - 02-02-2010

...you could just swap buttons in windows or use a program to do that for you...


RE: Inverting Mousebuttons? - NexXxus - 02-02-2010

as you can read above, changing it in windows doesn't affect dolphin.
Perhaps all games and programs which using Direct Input.


RE: Inverting Mousebuttons? - DacoTaco - 02-02-2010

(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