> For the complete documentation index, see [llms.txt](https://wiki.retrobat.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.retrobat.org/controllers/supported-controllers/lightguns.md).

# Lightguns

Bang bang

Lightgun compatibility is still in early phase with Retrobat, it might be possible that for many Emulators, specific configuration is required to make it work correctly.

There are several lightguns on the market, however, only a few have been tested so far.

## Lightgun detection

When a lightgun is connected to the system, a small gun icon appears on the top left corner near the Gamepad icon : ![](https://990680527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FexdzL60ZuqPLldz2AYta%2Fuploads%2FRLTXj0t1bTv2G5fAC7Na%2Fimage.png?alt=media\&token=7d423602-7795-4099-b8eb-0094f2841579)

Also, a crosshair will appear on the screen as well as a collection called **LIGHT GUN** in the **System View**.

<div align="left"><figure><img src="https://990680527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FexdzL60ZuqPLldz2AYta%2Fuploads%2FDksvg6JUzovugjA5VPUr%2Fimage.png?alt=media&amp;token=e3e2d842-db3c-416c-9e5a-87ab416ca53e" alt=""><figcaption></figcaption></figure></div>

LightGun compatible games will have a specific icon next to their name in the **Game View**

<div align="left"><figure><img src="https://i.imgur.com/rbFVyjA.png" alt=""><figcaption><p>Duck Hunt is compatible</p></figcaption></figure></div>

The list of LightGun games is stored in an .xml file inside your Retrobat folder, if you find that some games appear in the list but are not LightGun games, you can remove them from the file and manage your own list

{% hint style="warning" %}
Edit this file at your own risk.&#x20;

Be sure to save your file version as it might be overwritten by a Retrobat update.
{% endhint %}

<div align="left"><figure><img src="https://i.imgur.com/2wr4B4z.png" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
Some games appear in the list but the LightGun functionality is available only in some levels or some mini-games.
{% endhint %}

## Lightgun Configuration

### Lightgun Activation

Lightguns can be activated for a system or for a game.

To activate Lightguns for a system, from the **Game View**, open the [View Options](/navigation/view-options.md) and select **ADVANCED SYSTEM OPTIONS**

<div align="left"><figure><img src="https://i.imgur.com/rfmZxeu.png" alt=""><figcaption></figcaption></figure></div>

Navigate to **GUNS**

<div align="left"><figure><img src="https://i.imgur.com/0J8HuT2.png" alt=""><figcaption></figcaption></figure></div>

Switch **LIGHTUN** to **ON**

<div align="left"><figure><img src="https://i.imgur.com/8jcksZ3.png" alt=""><figcaption></figcaption></figure></div>

The same can be done per game from the [Game Options](/navigation/game-options.md) menu and **ADVANCED GAME OPTIONS**

{% hint style="info" %}
Disabling controller autoconfiguration does not disable the gun configuration: set **ENABLE GUN** to **OFF** as well. See Disabling autoconfiguration.
{% endhint %}

## Lightgun Devices

### WiiMote & Mayflash DolphinBar

![](https://990680527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FexdzL60ZuqPLldz2AYta%2Fuploads%2FE5SZMJ9THzSvPfNJzsWV%2Fimage.png?alt=media\&token=9e387a11-a7b4-41bb-9e5b-2cdac04cd4bd)![](https://990680527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FexdzL60ZuqPLldz2AYta%2Fuploads%2Fk7HgWVQdTJfW35lT7QFr%2Fimage.png?alt=media\&token=afe13c51-2df4-4e4a-9729-635dbf28fb63)

A Wii Remote (Wiimote) with a Mayflash DolphinBar is an easy way to play lightgun games. RetroBat supports two setups:

* [DolphinBar](/controllers/supported-controllers/lightguns/wiimoteandbar.md) only: with the Dolphin Bar in mode 1 (normal) or mode 2 (game) to simulate a mouse and keyboard
* WiimoteGun (or [Wiimote4Guns](https://github.com/Aynshe/WiimoteGun)) By using the mode 4 of the Mayflash Dolphinbar and activating the [WiimoteGun software](/controllers/supported-controllers/lightguns/wiimotegun.md).

{% hint style="info" %}
This guide assumes that you already know how to connect your Mayflash Dolphinbar and your Wiimotes. If not you can find all instructions on the [Mayflash Website](https://www.mayflash.com/product/6.html).
{% endhint %}

Both of these options will serve the same purpose : it will convert your Wiimotes movements and buttons into Mouse & Keyboard keys. This means that emulators that can use a mouse as a gun will be able to work with the Wiimote.

When using the Dolphinbar in mode 4 with WiimoteGun, you will be able to calibrate your Wiimote with a long-press on the "Home" button of the Wiimote.

{% hint style="info" %}
For better accuracy, it is recommended to place your Dolphinbar UNDER your screen, as close as possible to the display (do not forget to set your Dolphinbar switch at the back to the BOTTOM position).
{% endhint %}

{% hint style="info" %}
For Dolphin standalone emulator, you need to set the Dolphinbar in mode 4 as this is the native Wiimote mode supported by Dolphin and allowing you to use your wiimotes as **REAL WIIMOTES** for best possible experience. See the Wii section of the wiki for more information.
{% endhint %}

{% hint style="danger" %}
Note that Wiimote mode 4 is not compatible with using multiple Wiimotes for multigun games.
{% endhint %}

### Sinden Lightgun

<div align="left"><figure><img src="https://i.imgur.com/B4s3AIf.png" alt="" width="188"><figcaption></figcaption></figure></div>

The Sinden Lightgun works with RetroBat and should be automatically detected, it is however necessary to have the Sinden Software running in parallel of RetroBat.

{% embed url="<https://sindenlightgun.com/drivers/>" %}

When using Sinden Lightguns, the gun requires a white border to be displayed around the game screen. This border is necessary for the gun to detect the placement of the target on screen.&#x20;

* The border should appear automatically for most emulators
* In some cases, for "standalone" emulators, RetroBat uses Reshade to manage the boder. For that select the "sindenborder" shader in the list of available shaders in the RetroBat menu:

<div align="left"><figure><img src="https://i.imgur.com/Tx26Eal.png" alt=""><figcaption></figcaption></figure></div>

RetroBat can autolaunch the sinden lightgun software when a Sinden gun is detected, you can either put the sinden software within the **system\tools\sinden** folder of the retrobat installation...

<div align="left"><figure><img src="https://i.imgur.com/5cAaTW4.png" alt=""><figcaption></figcaption></figure></div>

... or specify where the executable is located in the settings:

<div align="left"><figure><img src="https://i.imgur.com/cjofFh6.png" alt=""><figcaption></figcaption></figure></div>

It is important to ensure that the Sinden software is configured to start automatically:

<div align="left"><figure><img src="https://i.imgur.com/IPlhZkI.png" alt=""><figcaption></figcaption></figure></div>

### Gun4IR

{% embed url="<https://www.gun4ir.com/>" %}

### RetroShooters

<div align="left"><figure><img src="https://i.imgur.com/qkz0rwl.png" alt="" width="188"><figcaption></figcaption></figure></div>

{% embed url="<https://retroshooter.com/>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://wiki.retrobat.org/controllers/supported-controllers/lightguns.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
