https://bugs.dolphin-emu.org/https://bugs.dolphin-emu.org/favicon.ico?12021-10-17T08:16:18ZDolphin bug trackerEmulator - Emulator Issues #12711: Wrong control stick recognition with few GamePads – potential bug source roughly foundhttps://bugs.dolphin-emu.org/issues/12711?journal_id=7432062021-10-17T08:16:18ZBarock
<ul></ul><p><strong>The title uses a wrong word.</strong> :-P The last word should be <em>found</em> not <em>founded</em>.</p>
<p><em>Wrong control stick recognition with few GamePads – potential bug source roughly found <del>ed</del></em></p>
Emulator - Emulator Issues #12711: Wrong control stick recognition with few GamePads – potential bug source roughly foundhttps://bugs.dolphin-emu.org/issues/12711?journal_id=7432072021-10-17T08:17:01ZJosJuice
<ul><li><strong>Subject</strong> changed from <i>Wrong control stick recognition with few GamePads – potential bug source roughly founded</i> to <i>Wrong control stick recognition with few GamePads – potential bug source roughly found</i></li><li><strong>Operating system</strong> <i>Android</i> added</li><li><strong>Operating system</strong> deleted (<del><i>N/A</i></del>)</li></ul><p>1.5258789E-5 is a very small number. I don't think this number has anything to do with the problem.</p>
Emulator - Emulator Issues #12711: Wrong control stick recognition with few GamePads – potential bug source roughly foundhttps://bugs.dolphin-emu.org/issues/12711?journal_id=7444472022-07-14T21:13:12Zgolivax
<ul></ul><p>Barock wrote:</p>
<blockquote>
<a name="Assumption"></a>
<h1 >Assumption<a href="#Assumption" class="wiki-anchor">¶</a></h1>
<p>There seems to be a buffer overflow in the recognition of gamepads right control stick. >Up< and >right< is already set with "Axis 11+" and >down< and >left< is already set with "Axis 14+" on some gamepads. There are no negative axis found.</p>
<p><strong>What steps will reproduce the problem?</strong></p>
<p>Connect the <em>8Bitdo Gamepad SF30 Pro</em> via Bluetooth to you android phone.<br>
Configure the buttons of your GameCube Controller 1 and use the right control stick. The negative axis won't be recognized like described above.</p>
<p><strong>Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.</strong></p>
<p>Yes - Dolphin Emulator (Android) 5.0-15339</p>
<p><strong>What are your PC specifications?</strong> (CPU, GPU, Operating System, more)</p>
<pre><code>Smartphone: Poco F3
OS: Android 11
GamePad that causes the bug: '8Bitdo Gamepad SF30 Pro'
GamePad that doesn't causes the bug: Ipega 9037
The difference between these two gamepads are analyzed below.
</code></pre>
<p><strong>Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,<br>
configuration files, savefiles, savestates)</strong></p>
<p>Only one of the two gamepads I use causes this bug. I try to find out the delta of the right control stick of those two gamepads by the android app "Gamepad tester" and found the following:</p>
<a name="Right-control-stick-of-working-Gamepad-Ipega-9037"></a>
<h1 >Right control stick of <strong>working</strong> Gamepad (<em>Ipega 9037</em>):<a href="#Right-control-stick-of-working-Gamepad-Ipega-9037" class="wiki-anchor">¶</a></h1>
<a name="Vertical-axis"></a>
<h2 >Vertical axis<a href="#Vertical-axis" class="wiki-anchor">¶</a></h2>
<pre><code>
axis 0x0e AXIS RZ default value (not moved): 0.003921628
up maximum: -0.89 (already slight different but near -0.9)
down maximum: 0.89 (already slight different but near +0.9)
</code></pre>
<a name="Horizontal-axis"></a>
<h2 >Horizontal axis<a href="#Horizontal-axis" class="wiki-anchor">¶</a></h2>
<pre><code>axis 0x0b AXIS Z default value (not moved): 0.003921628
left maximum: -0.89 (already slight different but near -0.9)
right maximum: 0.89 (already slight different but near +0.9)
</code></pre>
<a name="Right-control-stick-of-problematic-Gamepad-8Bitdo-Gamepad-SF30-Pro"></a>
<h1 >Right control stick of <em>problematic</em> Gamepad (<em>8Bitdo Gamepad SF30 Pro</em>)<a href="#Right-control-stick-of-problematic-Gamepad-8Bitdo-Gamepad-SF30-Pro" class="wiki-anchor">¶</a></h1>
<a name="Vertical-axis-2"></a>
<h2 >Vertical axis<a href="#Vertical-axis-2" class="wiki-anchor">¶</a></h2>
<pre><code>axis 0x0e AXIS RZ default value (not moved): 1.5258789E-5
up maximum: -0.89 (already slight different but near -0.9)
down maximum: 0.89 (already slight different but near +0.9)
</code></pre>
<a name="Horizontal-axis-2"></a>
<h2 >Horizontal axis<a href="#Horizontal-axis-2" class="wiki-anchor">¶</a></h2>
<pre><code>axis 0x0b AXIS Z default value (not moved): 1.5258789E-5
left maximum: -0.89 (already slight different but near -0.9)
right maximum: 0.89 (already slight different but near +0.9)
</code></pre>
<a name="Conclusion"></a>
<h1 >Conclusion<a href="#Conclusion" class="wiki-anchor">¶</a></h1>
<p>Only the default value is different. The floating number 1.5258789E-5 draws attention and seems to be a source of a wrong calculation. ;)</p>
</blockquote>
<p>I have the exact same problem using an original Gamecube Controller via an 8bitdo GBros bluetooth adapter (latest firmware v2.25). I'm running latest Dolphin Dev Build 5.0-16907 on a Galaxy S10 with Android 12.</p>
<p>Looking at ControllerMappingHelper.java, I've noticed that some controllers need axis rescaling. I wonder if 8Bitdo controllers also require some sort of axis rescaling/adjustment.</p>
Emulator - Emulator Issues #12711: Wrong control stick recognition with few GamePads – potential bug source roughly foundhttps://bugs.dolphin-emu.org/issues/12711?journal_id=7444992022-07-23T01:40:08Zgolivax
<ul></ul><p>Now I see. It's the other way around. Dolphin is rescaling the axes for my controller even though it shouldn't. The reason is because Android reads my controller as an XBox One controller.</p>
<p>More details on PR 10795</p>
Emulator - Emulator Issues #12711: Wrong control stick recognition with few GamePads – potential bug source roughly foundhttps://bugs.dolphin-emu.org/issues/12711?journal_id=7457202022-12-30T18:50:52ZJosJuice
<ul></ul><p>Could you test if this is working properly in the input overhaul pull request?</p>
<p>Pull request: <a href="https://github.com/dolphin-emu/dolphin/pull/11385" class="external">https://github.com/dolphin-emu/dolphin/pull/11385</a><br>
APK: <a href="https://dl.dolphin-emu.org/prs/b0/82/pr-11385-dolphin-latest.apk" class="external">https://dl.dolphin-emu.org/prs/b0/82/pr-11385-dolphin-latest.apk</a></p>
Emulator - Emulator Issues #12711: Wrong control stick recognition with few GamePads – potential bug source roughly foundhttps://bugs.dolphin-emu.org/issues/12711?journal_id=7460302023-03-11T11:47:36ZJosJuice
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Fixed</i></li><li><strong>Fixed in</strong> set to <i>5.0-18920</i></li></ul><p>This should be fixed in <a href="https://dolphin-emu.org/download/dev/62ff2f1030ae95ac0e5bf9ae02e9cc78664ab83e/" class="external">https://dolphin-emu.org/download/dev/62ff2f1030ae95ac0e5bf9ae02e9cc78664ab83e/</a>. If it isn't, please comment here and I can reopen the issue.</p>
Emulator - Emulator Issues #12711: Wrong control stick recognition with few GamePads – potential bug source roughly foundhttps://bugs.dolphin-emu.org/issues/12711?journal_id=7460552023-03-12T11:00:29ZBarock
<ul></ul><p>I confirm the fix of this bug in 5.0-18920! I was waiting such a long time for this fix! Thank you so much, JosJuice!</p>