Progress Continues
We've already had 21646 updates since Dolphin 5.0. Keep up with Dolphin's continuing progress through the Dolphin Blog: February, March, and April 2024 Dolphin Progress Report. |
The Dolphin Emulator Wiki needs your help! Dolphin can play thousands of games, and changes are happening all the time. Help us keep up! Join in and help us make this the best resource for Dolphin. |
Input Syntax: Difference between revisions
Jump to navigation
Jump to search
no edit summary
No edit summary |
No edit summary |
||
Line 28: | Line 28: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! scope="col" | Token | |||
! scope="col" | Explanation | |||
! scope="col" | Example usage | |||
|----------- | |||
! ''`'' | |||
| The backtick is used in cases where the expression is ambiguous. | |||
| <code>Button 1</code> results in a syntax error, because the expression is ambiguous. Adding backticks around the button name makes it able to be parsed correctly: <code>`Button 1`</code> | |||
|----------- | |||
! ''|'' | ! ''|'' | ||
| The expression is true if the left-hand side (LHS) or the right-hand side (RHS) are true. (This is not an exclusive OR.) | | The expression is true if the left-hand side (LHS) or the right-hand side (RHS) are true. (This is not an exclusive OR.) | ||
|- | | <code>`Button 1` | `Button 2`</code> | ||
The virtual controller button will be pressed if and only if Button 1 and/or Button 2 are pressed. | |||
|----------- | |||
! ''&'' | ! ''&'' | ||
| The expression is true if both the LHS and the RHS are true. | | The expression is true if both the LHS and the RHS are true. | ||
|- | | <code>`Button 1` & `Button 2`</code> | ||
The virtual controller button will be pressed if and only if both Button 1 and Button 2 are pressed. | |||
|----------- | |||
! ''!'' | ! ''!'' | ||
| Negates the following expression's value. | | Negates the following expression's value. | ||
|- | | <code>!`Button 1`</code> | ||
The virtual controller button will be pressed if and only if Button 1 is not pressed. | |||
|----------- | |||
! ''+'' | ! ''+'' | ||
| The expression value is equal to the LHS value and the RHS value summed up. | | The expression value is equal to the LHS value and the RHS value summed up. |