• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Controllers v
« Previous 1 ... 9 10 11 12 13 ... 319 Next »

Advanced button mapping for multiple keys
View New Posts | View Today's Posts

Pages (2): 1 2 Next »
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Advanced button mapping for multiple keys
08-06-2021, 11:01 AM
#1
TheRogueMaverickYT Offline
Junior Member
**
Posts: 6
Threads: 1
Joined: Aug 2021
Question 
I have a question related to control mapping. I tried to search for what I was needing for a bit to no avail. Is there a way to have one controller button push two virtual buttons?

I have an (OLD!) Logitech Attack 3 Joystick that I'm using for Mario Kart Wii. I don't need the full suite of buttons of a GameCube controller, so I ended up with 2 free buttons. I want to have one key combine L and Stick Up for fire an item in front with the other being L and Stick Down for rear attacks. This way, I don't mess up my steering with the wide range of movement to aim an item directly.

I am fairly tech-savvy, but uh... the Configure Input screen uses coding, essentially. I haven't done much for programming since high school a good few years ago. Tongue  It was mostly Visual BASIC that I grasped. Java wasn't so easy. Confused

If anybody could help me with this, I'd GREATLY appreciate it!  Big Grin  
Find
Reply
08-06-2021, 08:50 PM
#2
Jack Offline
Member
***
Posts: 121
Threads: 3
Joined: May 2021
Refer this:
https://wiki.dolphin-emu.org/index.php?title=Input_Syntax
Find
Reply
08-07-2021, 11:35 AM
#3
TheRogueMaverickYT Offline
Junior Member
**
Posts: 6
Threads: 1
Joined: Aug 2021
(08-06-2021, 08:50 PM)Jack Wrote: Refer this:
https://wiki.dolphin-emu.org/index.php?title=Input_Syntax

That was one of the resources I checked first. I still couldn't understand it. Huh
Find
Reply
08-07-2021, 06:21 PM (This post was last modified: 08-07-2021, 11:52 PM by MayImilae.)
#4
MayImilae Offline
Chronically Distracted
**********
Administrators
Posts: 4,571
Threads: 119
Joined: Mar 2011
If I'm reading this correctly, you want to have an input that has two simultaneous outputs? That's easy! I'll give you a quick walk through.

So first of all, here are the things I'm assuming.

1. You are using the latest dev build of Dolphin. Control mapping has basically been totally redone twice over since 5.0, and it is WAY better now so, use the latest dev build.
2. You have configured the device you wish to use in the main mapping already and it is working, so everything but the combined functions you want are working.
3. You aren't doing multi-device inputs, just the Joystick.

Ok so, the way Dolphin is set up is that we map the outputs, not the inputs. This means that there is no way to select the button on your joystick and have it map to two different outputs. So to get what you want, we have to work backwards from the outputs to the inputs.

Now, here's what you need to do. First up, right click the "L" button in the GameCube mapping, and you'll see the advanced mapping window with your working mapping for the L button. It will be a green letter or text with quotation marks around it. Now, on the right there is a dropdown that says "Operators", click it and select " | Or". Don't use Xor, use Or, if you don't know why then don't worry about it, just, use Or. Now you should see your existing green input with a | to the right of it. Next, in the big input list in the left-center, find the input you want to use for the L combo button (by either scrolling to look for it or clicking detect and then pressing the intended combo button), and click it to highlight it. And finally, on the right side, click Select. You've done it! It may not have the quote marks around it or be green (we should probably make it add those...) but it will still work. Now click OK to return to the main control mapping window.

Let's confirm that it worked. Press the joystick button you have mapped for L the GameCube's L button should light up, now press your L combo button and the GameCube's L button should also light up. Tada!

With that working, what we need to do now is do the same thing for the Control Stick Up. It's the exact same process, so right click Control stick up, add "| Or", now find your L combo key and highlight it, then click Select. With that done, click OK and go back to the main mapping window. If you press the L combo button, now the L button and Control Stick up should light! And if you press the existing L and Control Stick up buttons you mapped previously, they should also still work without any issues.

Now repeat this process with your other planned combo and you should be all set.
[Image: RPvlSEt.png]
AMD Threadripper Pro 5975WX PBO+200 | Asrock WRX80 Creator | NVIDIA GeForce RTX 4090 FE | 64GB DDR4-3600 Octo-Channel | Windows 11 22H2
MacBook Pro 14in | M1 Max (32 GPU Cores) | 64GB LPDDR5 6400 | macOS 12
Find
Reply
08-08-2021, 11:46 AM
#5
TheRogueMaverickYT Offline
Junior Member
**
Posts: 6
Threads: 1
Joined: Aug 2021
(08-07-2021, 06:21 PM)MayImilae Wrote: If I'm reading this correctly, you want to have an input that has two simultaneous outputs? That's easy! I'll give you a quick walk through.

So first of all, here are the things I'm assuming.

1. You are using the latest dev build of Dolphin. Control mapping has basically been totally redone twice over since 5.0, and it is WAY better now so, use the latest dev build.
2. You have configured the device you wish to use in the main mapping already and it is working, so everything but the combined functions you want are working.
3. You aren't doing multi-device inputs, just the Joystick.

Ok so, the way Dolphin is set up is that we map the outputs, not the inputs. This means that there is no way to select the button on your joystick and have it map to two different outputs. So to get what you want, we have to work backwards from the outputs to the inputs.

Now, here's what you need to do. First up, right click the "L" button in the GameCube mapping, and you'll see the advanced mapping window with your working mapping for the L button. It will be a green letter or text with quotation marks around it. Now, on the right there is a dropdown that says "Operators", click it and select " | Or". Don't use Xor, use Or, if you don't know why then don't worry about it, just, use Or. Now you should see your existing green input with a | to the right of it. Next, in the big input list in the left-center, find the input you want to use for the L combo button (by either scrolling to look for it or clicking detect and then pressing the intended combo button), and click it to highlight it. And finally, on the right side, click Select. You've done it! It may not have the quote marks around it or be green (we should probably make it add those...) but it will still work. Now click OK to return to the main control mapping window.

Let's confirm that it worked. Press the joystick button you have mapped for L the GameCube's L button should light up, now press your L combo button and the GameCube's L button should also light up. Tada!

With that working, what we need to do now is do the same thing for the Control Stick Up. It's the exact same process, so right click Control stick up, add "| Or", now find your L combo key and highlight it, then click Select. With that done, click OK and go back to the main mapping window. If you press the L combo button, now the L button and Control Stick up should light! And if you press the existing L and Control Stick up buttons you mapped previously, they should also still work without any issues.

Now repeat this process with your other planned combo and you should be all set.
Okay I got it so it activates the item when I push the stick up. For reference, I'm playing Mario Kart Wii. But when I push up on the stick, it still drops the banana peel behind me. Confused Sorry if I sound rude, but I'm trying to get the button to accomplish holding up before firing the banana and vice versa for the shells. Undecided
Find
Reply
08-08-2021, 11:18 PM
#6
MayImilae Offline
Chronically Distracted
**********
Administrators
Posts: 4,571
Threads: 119
Joined: Mar 2011
Could you post a screenshot of the GameCube controller mapping?
[Image: RPvlSEt.png]
AMD Threadripper Pro 5975WX PBO+200 | Asrock WRX80 Creator | NVIDIA GeForce RTX 4090 FE | 64GB DDR4-3600 Octo-Channel | Windows 11 22H2
MacBook Pro 14in | M1 Max (32 GPU Cores) | 64GB LPDDR5 6400 | macOS 12
Find
Reply
08-09-2021, 02:08 AM
#7
TheRogueMaverickYT Offline
Junior Member
**
Posts: 6
Threads: 1
Joined: Aug 2021
[quote pid='520547' dateline='1628428701']
MayImilaCould you post a screenshot of the GameCube controller mapping?
[/quote]




Sure! Here is what I have.


Attached Files Thumbnail(s)
   
Find
Reply
08-09-2021, 10:42 AM (This post was last modified: 08-09-2021, 10:49 AM by MayImilae.)
#8
MayImilae Offline
Chronically Distracted
**********
Administrators
Posts: 4,571
Threads: 119
Joined: Mar 2011
Hmm. You seem to be misunderstanding the difference between L and L Analog. Fortunately Mario Kart Wii doesn't use L Analog at all (or it doesn't use L entirely... I don't want to test it atm) so you don't need to learn the difference, just middle click L Analog and clear that value entirely. ...Or middle click L and assign it to Analog L only, just, whatever the game is looking for. Or to be safe just make L and L Analog have exactly the same inputs, that should cover both scenarios. Just remember that L and L Analog are on the same button on the GameCube Controller, even though they technically have different outputs.

Anyway, you didn't quite get what I said about mapping outputs, not inputs. If you want "Button 11" (hypothetical button for demo purposes) on your controller to activate both the GameCube's Control Stick Up and L buttons at the same time, then you need to do this:

Control Stick Up mapping: Axis Y-|Button 11
Triggers L: Button 2|Button 11
(and just to be safe) Triggers L-analog: Button 2|Button 11

With this, when you press "Button 11" both the Control Stick Up and L Trigger outputs will be sent at the same time.

You can just repeat the same for throwing it back using "Button 12" (another demo button) by mapping it to Trigger L and Control Stick Down via "| Or".
[Image: RPvlSEt.png]
AMD Threadripper Pro 5975WX PBO+200 | Asrock WRX80 Creator | NVIDIA GeForce RTX 4090 FE | 64GB DDR4-3600 Octo-Channel | Windows 11 22H2
MacBook Pro 14in | M1 Max (32 GPU Cores) | 64GB LPDDR5 6400 | macOS 12
Find
Reply
08-09-2021, 11:16 AM
#9
TheRogueMaverickYT Offline
Junior Member
**
Posts: 6
Threads: 1
Joined: Aug 2021
(08-09-2021, 10:42 AM)MayImilae Wrote: Hmm. You seem to be misunderstanding the difference between L and L Analog. Fortunately Mario Kart Wii doesn't use L Analog at all (or it doesn't use L entirely... I don't want to test it atm) so you don't need to learn the difference, just middle click L Analog and clear that value entirely. ...Or middle click L and assign it to Analog L only, just, whatever the game is looking for. Or to be safe just make L and L Analog have exactly the same inputs, that should cover both scenarios. Just remember that L and L Analog are on the same button on the GameCube Controller, even though they technically have different outputs.

Anyway, you didn't quite get what I said about mapping outputs, not inputs. If you want "Button 11" (hypothetical button for demo purposes) on your controller to activate both the GameCube's Control Stick Up and L buttons at the same time, then you need to do this:

Control Stick Up mapping: Axis Y-|Button 11
Triggers L: Button 2|Button 11
(and just to be safe) Triggers L-analog: Button 2|Button 11

With this, when you press "Button 11" both the Control Stick Up and L Trigger outputs will be sent at the same time.

You can just repeat the same for throwing it back using "Button 12" (another demo button) by mapping it to Trigger L and Control Stick Down via "| Or".

Okay, I've copied what you showed above. I just wanted to test with one input to test. But it didn't seem to work still. Is it because I had the Button 2 and Button 10 swapped? Button 2 is the one that I want the combo on.


Attached Files Thumbnail(s)
   
Find
Reply
08-09-2021, 02:48 PM
#10
MayImilae Offline
Chronically Distracted
**********
Administrators
Posts: 4,571
Threads: 119
Joined: Mar 2011
If you want the combo on button 2, then yea, you have them swapped. Button 2 should be in Control Stick Up, not Button 10.
[Image: RPvlSEt.png]
AMD Threadripper Pro 5975WX PBO+200 | Asrock WRX80 Creator | NVIDIA GeForce RTX 4090 FE | 64GB DDR4-3600 Octo-Channel | Windows 11 22H2
MacBook Pro 14in | M1 Max (32 GPU Cores) | 64GB LPDDR5 6400 | macOS 12
Find
Reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode