Add stick center info to calibration finetune
This commit is contained in:
parent
e514242393
commit
3c583151a3
3
core.js
3
core.js
@ -1043,6 +1043,9 @@ function ds5_finetune_update(name, plx, ply) {
|
|||||||
ctx.moveTo(hb, yb);
|
ctx.moveTo(hb, yb);
|
||||||
ctx.lineTo(hb+plx*sz, yb+ply*sz);
|
ctx.lineTo(hb+plx*sz, yb+ply*sz);
|
||||||
ctx.stroke();
|
ctx.stroke();
|
||||||
|
|
||||||
|
$("#"+ name + "x-lbl").text(float_to_str(plx));
|
||||||
|
$("#"+ name + "y-lbl").text(float_to_str(ply));
|
||||||
}
|
}
|
||||||
|
|
||||||
function finetune_close() {
|
function finetune_close() {
|
||||||
|
32
index.html
32
index.html
@ -286,6 +286,21 @@ dl.row dd { font-family: monospace; }
|
|||||||
<div class="col"></div>
|
<div class="col"></div>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -335,6 +350,21 @@ dl.row dd { font-family: monospace; }
|
|||||||
<div class="col"></div>
|
<div class="col"></div>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</div> <!-- col -->
|
</div> <!-- col -->
|
||||||
@ -757,7 +787,7 @@ dl.row dd { font-family: monospace; }
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<footer>
|
<footer>
|
||||||
<div class="d-flex flex-column flex-sm-row justify-content-between py-4 my-4 border-top" id="footbody">
|
<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> <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> <span id="authorMsg"></span></p>
|
||||||
|
|
||||||
<ul class="list-unstyled d-flex">
|
<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>
|
<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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user