diff --git a/static/index.html b/static/index.html
index 9a6623a..6d37aef 100644
--- a/static/index.html
+++ b/static/index.html
@@ -173,19 +173,19 @@
- LB
+ L1
|
gamepad
|
- RB
+ R1
|
- Second mouse button: Dah
+ Second mouse button switches dah and dit
|
diff --git a/static/inputs.mjs b/static/inputs.mjs
index 0d6c42a..17378a5 100644
--- a/static/inputs.mjs
+++ b/static/inputs.mjs
@@ -29,11 +29,17 @@ export class HTML extends Input{
let begin = event.type.endsWith("down") || event.type.endsWith("start")
if (event.target.id == "dah") {
- this.keyer.Dah(begin)
- } else if ((event.target.id == "dit") && (event.button == 2)) {
- this.keyer.Dah(begin)
+ if (event.button == 2) {
+ this.keyer.Dit(begin)
+ } else {
+ this.keyer.Dah(begin)
+ }
} else if (event.target.id == "dit") {
- this.keyer.Dit(begin)
+ if (event.button == 2) {
+ this.keyer.Dah(begin)
+ } else {
+ this.keyer.Dit(begin)
+ }
} else if (event.target.id == "key") {
this.keyer.Straight(begin)
} else {