Skip to content

Dolphin

argonlefou edited this page Sep 23, 2021 · 5 revisions

DemulShooter is compatible with the latest stable version Dolphin 5.0
All games are supported, there is no game-specific command option.

DemulShooter generates the following keys for Player1 device :

  • LeftClick => LeftClick (DInput/0/Keyboard Mouse)
  • MiddleClick => MidleClick (DInput/0/Keyboard Mouse)
  • RightClick => RightClick (DInput/0/Keyboard Mouse)

And for Player2 device:

  • LeftClick => S (DInput/0/Keyboard Mouse)
  • MiddleClick => D (DInput/0/Keyboard Mouse)
  • RightClick => F (DInput/0/Keyboard Mouse)

Configuration :

To change the keyboard keys used for Player2 gun buttons, edit the following values in Demulshooter's config.ini file :

  • DOLPHIN_P2_LCLICK
  • DOLPHIN_P2_MCLICK
  • DOLPHIN_P2_RCLICK

Default values are :
DOLPHIN_P2_LCLICK = DIK_S
DOLPHIN_P2_MCLICK = DIK_D
DOLPHIN_P2_RCLICK = DIK_F

Usage :

  1. Download Dolphin, install, execute it a first time (to make it create it's config folder) then close it (usually MyDocuments\Dolphin Emulator\Config\WiimoteNew.ini). This is a generic Wiimote config file working with most games. You'll be able to modify it later if needed.
    If an Aimtrak device is set for Player2, DemulShooter will tell you that a correctly modified file was copied with the correct Aimtrak ID.
    If you have another kind of device or if DemulShooter could not identify your Aimtrak, you will have to manually modify the WiimoteNew.ini file (see later below, Step 5)

  2. Use DemulShooter GUI (see Configuration wiki page) to make it copy Wiimote config file to Dolphin config folder

  3. Now execute Dolphin

    • In the "Graphics" menu, check "Render To Main Window". Without this step, some strange bugs sometimes appear.
    • In the "Graphics" menu, set "Aspect Ratio" to "Stretch To Window". Without this step, aim will be off if Dolphin doesn't use all of it's window.
  4. In "Controllers" settings, Wiimote1 and Wiimote 2 should be set to "Emulated Wiimote". Open the "Configure" window for Wiimote2

If you had a success message for step 2, you can jump to step 6 directly !

  1. In the "Device List" dropdown list, search for your Player2 Lightgun (ex : DInput/0/ATRAK Device #2 for Aimtrak with ID=2) and note the exact name. Now close Dolphin, edit manually with a text editor the WiimoteNew.ini file on your computer and replace all occurence of "DInput/0/ATRAK Device #2" by your DeviceName (4 lines to modify : number 36,37,38,39) and go back to Dolphin

  2. In the "Device List" dropdown , you'll see both Wiimote are set to "DInput/0/Keyboard Mouse", this is normal do not change it !!!
    That way you can add whatever key you want with a Keypress and use Autohotkey or anything else. Only P2 axes are not modified by keyboard.

  3. In the "Device List" dropdown list, search for your Player2 Lightgun (ex : DInput/0/ATRAK Device #2 for Aimtrak with ID=2) and note it's exact position in the list (usually, KeyboardMouse is 1st, then are following other plugged device in an order I can't know about)

  4. Run DemulShooter for this emulator/game (-rom option is not needed) with the -ddinumber option set to the number you just got. If you don't specify the -ddinumber option, the default value will be 3 (usually, 1 -> KeyboardMouse / 2 -> Aimtrak #1 / 3 -> Aimtrak #2).
    The device order will always be the same with the same devices plugged. Only adding/removing devices can change the order.
    Example for DemulShooter : DemulShooter.exe -target=dolphin5 -ddinumber=4

  5. Launch a game (or use command line to run Dolphin with the game directly)

Misc. Notes :

  • To make it quick, to make Player2 work you need your exact DeviceName in the WiimoteNew.ini config file AND the exact position number of this Device in Dolphin's device list for DemulShooter

  • In Wiimote settings, for Player1 or Player2 you can modify everything you want to make the configuration fit some games needs :
    !!! Just don't modify Player2 AXIS buttons !!!
    Set click 0, click 1 and click 2 for DemulShooter's device#1 clicks and S, D and F keyboard button for DemulShooter's device #2

  • My trick to make it all work is to use an AutohotKey script to copy/paste a corresponding WiimoteNew.ini file (according to the game I want) before executing Dolphin + Game, and to map aimtrak buttons (others than mouse clicks) to keyboard key (according to WiimoteNew.ini file)

Clone this wiki locally