From b71cbf8d6639a81c670ce4cc31091efae9d4224f Mon Sep 17 00:00:00 2001
From: Mar Alegre <mar@mar.alemor.org>
Date: Tue, 29 Nov 2022 16:53:12 -0500
Subject: [PATCH] added subnautica script

---
 src/Subnautica.ahk | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 src/Subnautica.ahk

diff --git a/src/Subnautica.ahk b/src/Subnautica.ahk
new file mode 100644
index 0000000..3d39742
--- /dev/null
+++ b/src/Subnautica.ahk
@@ -0,0 +1,32 @@
+; Script can be directly run by or compiled into an .exe by the open-source software AutoHotkey
+; https://www.autohotkey.com
+
+;
+; Front Matter
+;
+
+; Include relevant libraries
+#Include ../lib/Prelude.ahk
+#Include ../lib/HoldRepeat.ahk
+
+WrapperPath:="steam://rungameid/264710"
+WrapperWindow:="Subnautica"
+#Include ../lib/Wrapper.ahk
+
+;
+; Hotkeys
+;
+
+; Hold/Autoclick mouse buttons
+; Holds if single click, autoclicks if double click
+*!LButton UP::HoldOrRepeat("LButton",[])
+*!RButton UP::HoldOrRepeat("RButton",[])
+
+; Hold/Repeat spacebar
+*!Space UP::HoldOrRepeat("Space",["LShift"])
+
+; Autorun
+*!w UP::Hold("w",["s"])
+*!s UP::Hold("s",["w"])
+*!a UP::Hold("a",["d","w","s"])
+*!d UP::Hold("d",["a","w","s"])
\ No newline at end of file