summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/index.html7
-rw-r--r--WasmAudio/main.c5
2 files changed, 11 insertions, 1 deletions
diff --git a/Build/index.html b/Build/index.html
index 4c371ec..02c0d3f 100644
--- a/Build/index.html
+++ b/Build/index.html
@@ -33,7 +33,7 @@
<button class="setNumberTaps" type="button">Set Taps</button>
<textarea class="outSetNumberTaps"></textarea>
- <button class="recalculateFir" type="button">Calc</button>
+ <button class="recalculateFir" id="recalculateFir" type="button">Calc</button>
<textarea class="outCoeficients">1</textarea>
@@ -59,6 +59,11 @@
outCoeficients.value = 2;
})
+ document.querySelector("#recalculateFir").onclick = function() {
+ console.log("Oh noe");
+ outCoeficients.value = 2;
+ }
+
</script>
diff --git a/WasmAudio/main.c b/WasmAudio/main.c
index 9ddf5ba..4987fff 100644
--- a/WasmAudio/main.c
+++ b/WasmAudio/main.c
@@ -524,6 +524,11 @@ int main(int argc, const char * argv[]) {
fprintf(stderr, "EXIT:Unable to init SDL: %s\n", SDL_GetError());
exit(1);
}
+ SDL_EventState(SDL_MOUSEBUTTONUP, SDL_IGNORE);
+ SDL_EventState(SDL_MOUSEBUTTONDOWN, SDL_IGNORE);
+ SDL_EventState(SDL_MOUSEMOTION, SDL_IGNORE);
+ SDL_EventState(SDL_MOUSEWHEEL, SDL_IGNORE);
+
atexit(SDL_Quit);