Add stick center info to calibration finetune

This commit is contained in:
dualshock-tools 2025-01-25 14:07:04 +01:00
parent e514242393
commit 3c583151a3
2 changed files with 34 additions and 1 deletions

View File

@ -1043,6 +1043,9 @@ function ds5_finetune_update(name, plx, ply) {
ctx.moveTo(hb, yb);
ctx.lineTo(hb+plx*sz, yb+ply*sz);
ctx.stroke();
$("#"+ name + "x-lbl").text(float_to_str(plx));
$("#"+ name + "y-lbl").text(float_to_str(ply));
}
function finetune_close() {

View File

@ -286,6 +286,21 @@ dl.row dd { font-family: monospace; }
<div class="col"></div>
</div>
</div>
<div class="px-2">
<div class="hstack">
<div class="vstack" style="text-align: center;">
<span>LX:</span>
<pre id="finetuneStickCanvasLx-lbl" style="min-width: 80px;"></pre>
</div>
<div class="vstack" style="text-align: center;">
<span>LY:</span>
<pre id="finetuneStickCanvasLy-lbl" style="min-width: 80px;"></pre>
</div>
</div>
</div>
</div>
</div>
@ -335,6 +350,21 @@ dl.row dd { font-family: monospace; }
<div class="col"></div>
</div>
</div>
<div class="px-2">
<div class="hstack">
<div class="vstack" style="text-align: center;">
<span>RX:</span>
<pre id="finetuneStickCanvasRx-lbl" style="min-width: 80px;"></pre>
</div>
<div class="vstack" style="text-align: center;">
<span>RY:</span>
<pre id="finetuneStickCanvasRy-lbl" style="min-width: 80px;"></pre>
</div>
</div>
</div>
</div>
</div>
</div> <!-- col -->
@ -757,7 +787,7 @@ dl.row dd { font-family: monospace; }
<div class="container">
<footer>
<div class="d-flex flex-column flex-sm-row justify-content-between py-4 my-4 border-top" id="footbody">
<p><a target="_blank" href="https://github.com/dualshock-tools/dualshock-tools.github.io/commits/main/"><span class="ds-i18n">Version</span> 2.0</a> (2025-01-18) - <a href="#" class="ds-i18n" onclick="show_donate_modal();">Support this project</a>&nbsp;<span id="authorMsg"></span></p>
<p><a target="_blank" href="https://github.com/dualshock-tools/dualshock-tools.github.io/commits/main/"><span class="ds-i18n">Version</span> 2.1</a> (2025-01-25) - <a href="#" class="ds-i18n" onclick="show_donate_modal();">Support this project</a>&nbsp;<span id="authorMsg"></span></p>
<ul class="list-unstyled d-flex">
<li class="ms-3"><a class="link-body-emphasis" href="mailto:ds4@the.al" target="_blank"><svg class="bi" width="24" height="24"><use xlink:href="#mail"/></svg></a></li>