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


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 381 382 383 384 385 ... 1189 Next »

Difference between OR and ADD in controls setup
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
Difference between OR and ADD in controls setup
07-26-2016, 01:06 AM
#1
Kyogre Offline
Junior Member
**
Posts: 10
Threads: 1
Joined: Jul 2016
what the difference? and if it isn't described in any guide, so maybe developers need to add that hint in Dolphin-wiki?
Find
Reply
07-26-2016, 06:12 AM
#2
ExtremeDude2 Offline
Gotta post fast
*******
Posts: 9,306
Threads: 273
Joined: Dec 2010
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.
Check out my videos (dead)
[Image: sig-22354.png]
Website Find
Reply
07-26-2016, 06:44 AM
#3
Kyogre Offline
Junior Member
**
Posts: 10
Threads: 1
Joined: Jul 2016
(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
Find
Reply
07-26-2016, 08:06 AM
#4
envisaged0ne Offline
The Force Is Strong With This One
*****
Posts: 759
Threads: 15
Joined: Mar 2009
(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
Windows 11 Home x64
Intel Core i7-10700
Nvidia Rtx 2060 6GB
32.0 GB DDR4 RAM
Find
Reply
07-26-2016, 05:58 PM (This post was last modified: 07-26-2016, 06:00 PM by Kyogre.)
#5
Kyogre Offline
Junior Member
**
Posts: 10
Threads: 1
Joined: Jul 2016
envisaged0ne,
Dolphin 5.0 stable. Here is screenshot
   
Find
Reply
07-27-2016, 01:20 PM (This post was last modified: 07-27-2016, 01:21 PM by KHg8m3r. Edit Reason: clarification )
#6
KHg8m3r Offline
Doesn't sleep, just Dolphin and Robots
*******
Posts: 5,914
Threads: 4
Joined: Sep 2013
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.
Find
Reply
07-27-2016, 05:29 PM
#7
Kyogre Offline
Junior Member
**
Posts: 10
Threads: 1
Joined: Jul 2016
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.
Find
Reply
07-28-2016, 06:15 AM (This post was last modified: 07-28-2016, 06:18 AM by leolam.)
#8
leolam Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,478
Threads: 5
Joined: Sep 2015
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.
Website Find
Reply
07-28-2016, 10:19 AM
#9
TehGuy Offline
No longer needs to use his GC/Wii
***
Posts: 156
Threads: 5
Joined: May 2014
(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)
AMD Ryzen 7 3700X @ 4.2 GHz | MSI GTX 1070TI 8GB | 32 GB DDR4 @ 3000 MHz | Windows 10 Pro x64 | Dolphin 5.0-10886
Find
Reply
07-28-2016, 12:23 PM (This post was last modified: 07-28-2016, 12:23 PM by KHg8m3r.)
#10
KHg8m3r Offline
Doesn't sleep, just Dolphin and Robots
*******
Posts: 5,914
Threads: 4
Joined: Sep 2013
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)
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