I'm another newb coding in c++ for the nds using devkit pro and I couldn't find anything online about this, surprisingly. How do I code an or statement like the following:
if ((keys & KEY_L && LR==true) or (keys & KEY_X && LR==false))
{
...
}
If you wanted to say, "if L key is pressed..." you would use "if (keys & KEY_L)..."
So how would I say "if LR is true, and the L keys is pressed, or if LR is false, and the X key is pressed"