Deleted disclaimer

This commit is contained in:
Eugene Serb 2022-06-17 13:00:12 +03:00
parent 5b65f5b97a
commit 9f5781539c
2 changed files with 2 additions and 9 deletions

View File

@ -94,14 +94,6 @@
<h2 class="content__header">Patterns</h2> <h2 class="content__header">Patterns</h2>
<div id="pattern-list" class="pattern-list"></div> <div id="pattern-list" class="pattern-list"></div>
</div> </div>
<section class="content">
<h2 class="content__header">Disclaimer</h2>
<div>
<span>
The author of the program code and the publisher is not responsible for the possible consequences of using the program. You use the program at your own risk. Check your device for correct operation. Please consult your doctor before using the program.
</span>
</div>
</section>
</div> </div>
</main> </main>

View File

@ -177,6 +177,7 @@ class Gamepad {
init = () => { init = () => {
this.id = Date.now(); this.id = Date.now();
this.canVibrate = (this.unit.vibrationActuator) ? true : false;
this.isSelected = false; this.isSelected = false;
this.isVibrating = false; this.isVibrating = false;
this.isLocked = false; this.isLocked = false;
@ -350,7 +351,7 @@ class VibrationMaster {
eventHandler = () => { eventHandler = () => {
if (this.gamepads.length > 0) { if (this.gamepads.length > 0) {
this.gamepads.forEach(gamepad => { this.gamepads.forEach(gamepad => {
if (gamepad.unit.vibrationActuator) { if (gamepad.canVibrate === true) {
if (gamepad.unit.buttons[2].pressed === true && if (gamepad.unit.buttons[2].pressed === true &&
gamepad.unit.buttons[3].pressed === true) { gamepad.unit.buttons[3].pressed === true) {
gamepad.lock(); gamepad.lock();