Input Syntax: Difference between revisions

From Dolphin Emulator Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
As a follow-up by right-clicking the button in GameCube, Wiimote, and Hotkey configuration windows, this page explains how to properly assign multiple input and combination of each command in controller configuration window.
As a follow-up by right-clicking the button in GameCube, Wiimote, and Hotkey configuration windows, this page explains how to properly assign multiple input and combination of each command in hotkey and controller configuration window.


== Assignment Buttons ==
== Assignment Buttons ==
Line 22: Line 22:
! ''! NOT''
! ''! NOT''
| Similar to '''''Select''''', adds "<var>!</var>" before a selected input.
| Similar to '''''Select''''', adds "<var>!</var>" before a selected input.
* This is one confusing part, requires additional combination and/or manual editing in the text field. Check the [[#! NOT]] example in next section.
* This is one confusing part, requires additional combination and/or manual editing in the text field. Check the [[#Using ! NOT|#! NOT]] example in next section.
|-
|-
! ''+ ADD''
! ''+ ADD''
Line 36: Line 36:
<pre>`Shoulder L` & Guide | `DInput/0/Keyboard Mouse:RMENU` & `DInput/0/Keyboard Mouse:RETURN`</pre>
<pre>`Shoulder L` & Guide | `DInput/0/Keyboard Mouse:RMENU` & `DInput/0/Keyboard Mouse:RETURN`</pre>


=== ! NOT ===
=== Using ! NOT ===
Command will always active unless this input is triggered.
{|
|- style="vertical-align: text-top;"
| width=50%| Command will always active unless this input is triggered.
<pre>!`Pad W`</pre>
<pre>!`Pad W`</pre>
 
| width=50%| Command will active when Button X is pressed, but it won't be triggered when Pad W is also pressed.
Command will active when Button X is pressed, but it won't be triggered when Pad W is also pressed.
<pre>!`Pad W` & `Button X`</pre>
<pre>!`Pad W` & `Button X`</pre>
 
|-
The first two parameters will not work anymore.
| width=50%| The first two parameters will not work anymore.
<pre>!`Pad W` & `Button X` | !`Pad E` & `Button B`</pre>
<pre>!`Pad W` & `Button X` &#124; !`Pad E` & `Button B`</pre>
 
| width=50%| However this will work alright.
However this will work alright.
<pre>`Button X` & !`Pad W` &#124; `Button B` & !`Pad E`</pre>
<pre>`Button X` & !`Pad W` | `Button B` & !`Pad E`</pre>
|}


[[Category:Tutorials]]
[[Category:Tutorials]]

Revision as of 06:06, 17 December 2015

As a follow-up by right-clicking the button in GameCube, Wiimote, and Hotkey configuration windows, this page explains how to properly assign multiple input and combination of each command in hotkey and controller configuration window.

Assignment Buttons

When opening Configuring Controller window the text cursor will be placed on beginning of lines in small text field.

Detect It will automatically highlight the selected input in the list which can save your time looking through there. It will wait for input from the selected device in Device dropdown for 3 seconds.
Select Assigns the selected input from the list to the current text cursor location in small text field.
| OR Similar to Select, adds " | " before a selected input.
  • Syntax error when selected first.
& AND Similar to Select, adds " & " before a selected input.
  • Syntax error when selected first.
! NOT Similar to Select, adds "!" before a selected input.
  • This is one confusing part, requires additional combination and/or manual editing in the text field. Check the #! NOT example in next section.
+ ADD Similar to Select, adds " + " before a selected input.
  • Syntax error when selected first.

Parameter Examples

This is personalized input combination for Fullscreen in hotkey setting. The first parameter is for Guide (Big "X") button on Xbox 360 controller and the final parameters are for Alt + Enter key combination on keyboard. Both devices can trigger Fullscreen.

Guide | `DInput/0/Keyboard Mouse:RMENU` & `DInput/0/Keyboard Mouse:RETURN`

For some reason the first two parameters don't work.

`Shoulder L` & Guide | `DInput/0/Keyboard Mouse:RMENU` & `DInput/0/Keyboard Mouse:RETURN`

Using ! NOT

Command will always active unless this input is triggered.
!`Pad W`
Command will active when Button X is pressed, but it won't be triggered when Pad W is also pressed.
!`Pad W` & `Button X`
The first two parameters will not work anymore.
!`Pad W` & `Button X` | !`Pad E` & `Button B`
However this will work alright.
`Button X` & !`Pad W` | `Button B` & !`Pad E`