Dolphin, the GameCube and Wii emulator - Forums

Full Version: Difference between OR and ADD in controls setup
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
what the difference? and if it isn't described in any guide, so maybe developers need to add that hint in Dolphin-wiki?
OR means you can press A OR B on your controller to press that button on the emulated controller. The other I assume you mean is AND which will only press the button if A AND B are pressed.
(07-26-2016, 06:12 AM)ExtremeDude2 Wrote: [ -> ]OR means you can press A OR B on your controller to press that button on the emulated controller. The other I assume you mean is AND which will only press the button if A AND B are pressed.
no, I didn't mistake. Go to controls config and you see: OR, AND, ADD. So AND and ADD are not the same
(07-26-2016, 06:44 AM)Kyogre Wrote: [ -> ]no, I didn't mistake. Go to controls config and you see: OR, AND, ADD. So AND and ADD are not the same

Ok, using the latest dev builds, going to controller settings, I don't see what you're talking about
envisaged0ne,
Dolphin 5.0 stable. Here is screenshot
[attachment=15070]
That's the add button, so if you want to map multiple buttons to the same function.
OR is stating that it has to be A or B, but not both at the same time
ADD means you can use A, B, and C all at once to press the button, if you were so inclined, as Dolphin would only see that as 1 press.
KHg8m3r,
Have you checked it? I had checked and it is not true. If you assign A | B you can use them even both at the same time and it will work, the same goes for A + B.
OR works the same as || in programming languages (the button will be pressed if A or B is pressed -- note that it is not an exclusive or).
AND is the same as &&. Both A and B have to be pressed.

I'm not sure, but I would guess ADD is to add the values of A and B together (button presses are either 0 (unpressed) or 1 (pressed), but I think you can get values between 0 and 1 with axes).

Edit: in case of doubt, you can always check the source to see what Dolphin is doing. Here's the ExpressionParser.
(07-27-2016, 05:29 PM)Kyogre Wrote: [ -> ]KHg8m3r,
Have you checked it? I had checked and it is not true. If you assign A | B you can use them even both at the same time and it will work, the same goes for A + B.

I'm starting to think ADD functions like it would in Boolean Algebra (0 + 0 = 0, 1 + 0 = 1, 0 + 1 = 1, 1 + 1 = 1, basically OR)
I was thinking the OR was an exclusive OR.
Here is the official explanation: https://wiki.dolphin-emu.org/index.php?title=Input_Syntax

Looks like its not documented what the difference is (at least in the wiki)
Pages: 1 2