Lightgun Lichtknarre > Configure Lichtknarre Lightgun for Dolphin and Mame with vjoy

What is going on here?

Here you can learn how to configure “Lichtknarre”-Lightgun-tool for Dolphin- and Mame-emulator by using the vjoy connector-plugin. In theory you could also use the mouse connector-plugin, but than mutible lightguns are not possible.

If you dont know what “Lichtknarre”-Lightgun is check this out:

https://geekonarium.de/en/lightgun-lichtknarre-for-the-wii-remote-on-your-pc-computer/

Install and configure Vjoy

Download and Install: http://vjoystick.sourceforge.net/

I tested it with v2.

Use following configuration:

You can use as many joysticks you like. Lichtknarre will send the input to these devices.

Select plugin

Select the vjoy plugin for the player and its assigned device, which should send the data to the vjoy2 controller. The first player/device sends to the first vjoy controller and the second to the second controller and so on.

  • player1 > vjoy connector plugin > vjoy virtual controller 1 > emulator has to use virtual vjoy controller1
  • player2 > vjoy connector plugin > vjoy virtual controller 2 > emulator has to use virtual vjoy controller2
  • p3
  • p4
  • etc…

Every virtual vjoy controller has to be activated in vjoy configurator.

Emulator configurations

If you are interested in adding a tutorial here, just post a link in the comments, write an email (imprint) or come to discord.

Dolphin 4

For Dolphin, you can configure the buttons normally by using the controller. The Nunchuck is also supported. To do this, select the vjoy controller for the associated player.

 

To transfer the input from the lightgun to the axes of the vjoy2 controller into Dolphin, you have to configure the “up”, “down”, “left”, “right” dialogue manually. For this use right click on the buttons and search for “Axis X- X+ Y- Y+” and configure it like in the picture.

Make sure you strech the picture over your full screen else it is not pixel perfect targeting because the software things you use the full screen and the emulator only uses a part of the screen because maybe the game is in 4:3. 

Please read this for more infos: https://geekonarium.de/en/what-is-ir-offset-and-why-do-i-need-it/

Dolphin 5

Lichtknarre is now compatible with Dolphin 5. Injecting a hook into Dolphin to filter out real wii remotes so that they can be used by Lichtknarre. For this, however, some settings must be made in Dolphin 5:

 
– Use only emulated wii remotes
– Activate “Connect Wii Remotes for Emulated Controllers”.
– Activate “Continues Scanning”
 
The real wii remote functionality need to be activated so the hook can disable it. Lookup first screenshot. You should also close all other programms which has wii remote clients. At Steam there is also the possibility to connect wii remotes. So this needs to be closed, because this could additionally disturb the whole process.
 
Also Lookup second screenshot how i setup the controller for the wii. For gamecube it should be the same as for dolphin 4.
 
 
In future maybe this bluetooth blocking hook functionality will be available to inject into other processes. If you need this please let me know in the comments.
 
Another solution which was suggested to me is the following:
 
 
Here you can block devices for certain processes. Use it at your own risk, as I have not tested it myself. It seems to be a kernel driver which has to be installed. I don’t have the time to check the code for computer viruses. It is also possible that anti cheat software thinks that this will help you cheat and therefore you might be banned. So maybe only experienced cab user should try this. Please comment if you have experiences. 
 
Here we speak about pro/cons:
Mame

Mame is not that easy. First configure the global config like this:

Make sure all the games uses the global configuration. By resetting the game configuration.

Afterwards start the game and configure the lightgun and the keys.

Press Tab > Enter “input (general)” > enter “player 1 controls” > scroll to Lightgun settings and configure by pressing enter.

Now goto mame.ini in your Mame folder and change the following values to the following values:

joystick_deadzone 0
joystick_saturation 1

You may also want to try out the lowlatency setting:

https://docs.mamedev.org/commandline/commandline-all.html?highlight=latency#core-performance-options

Happy playing!

You have to move the wiiremote horizontal when configuring “Lightgun X Analog” and move vertical when configure “Lightgun Y Analog”.

By hitting esc you can return to the game. But dont forget to configure the keys for coins and start by using the wii remote. You can do all this configuration for other players also.

Make sure you strech the picture over the full screen, because else the iron sight accuracy is lost. The game could be in 4:3 ratio and your screen is 16:9. For more Infos please read here: https://geekonarium.de/en/what-is-ir-offset-and-why-do-i-need-it/

Sometimes mame has problems with mouse and joystick performance. That is why I will make the input per second configurable for the Vjoy plugin in the Lichtknarre software.

You will then be able to configure it here:

 

Now your able to configure all the Buttons you need. Here is how i configured my Buttons with vjoy2 connector:

555 Downloads

 

It is very basic and you shall better include this into your actual config than override.
The configuration is located in “mame folder/cfg/default.cfg”

Help tools

5 comments

  • Jeff

    Thanks a lot for this great software!

    Licht + vjoy2 works fine with my TeknoParrot, but I have issue when Licht + vjoy2 + Dolphin work togather. I found when I try to configure wii remote with “emulated wii remote”, the controller in Licht disconnected immediately and P1 changed to red. Then I cannot map key of my wiimote in “Dinput/0/vJoy Device”, but the key map works in “Bluetooth/0/Wii Remote”

    Any suggestion to have my setup work? Thanks in advance!

    • Sebastian

      Hi, I’m glad you like the software. It sounds to me like you have a third-party driver installed that also has something to do with the Wiiremote and makes it available as a game controller. This is of course incompatible with Lichtknarre. The following software is recommended in the troubleshooting guide to erease such third party driver:

      https://github.com/lostindark/DriverStoreExplorer

      Please beware that you can damage your pc when you do something wrong. No waranty. On your own responsibility.
      But maybe you already know what software you have installed that still uses the WiiRemote and a simple uninstall will do.

      Remote diagnosis is also not easy but let me tell you that I have no problems with Dolphin. Come to Discord if you need more help.

    • Sebastian

      Hello the new version should be now Dolphin 5 compatible. The software hooks into dolphin 5 and filters the devices. Please give me feedback 🙂 Will complete the tutorial for Dolphin 5 soon.

Leave a Reply