From: Athene Allen
Date: Sat, 22 Mar 2025 14:46:45 +0000 (+0000)
Subject: pipboy update
X-Git-Url: https://fortfriendship.online/gitweb/gnargle.github.io.git/commitdiff_plain/a70db5a2664f6050ef7a4a339545ff798dbb68ef?hp=240e81b86bd3caa1bf56eb93d676608e2d6e01cd
pipboy update
---
diff --git a/gnargle.github.io.code-workspace b/gnargle.github.io.code-workspace
new file mode 100644
index 0000000..ef9f5d2
--- /dev/null
+++ b/gnargle.github.io.code-workspace
@@ -0,0 +1,7 @@
+{
+ "folders": [
+ {
+ "path": "."
+ }
+ ]
+}
\ No newline at end of file
diff --git a/img/projects/pipboy/firmwareInputListener.png b/img/projects/pipboy/firmwareInputListener.png
new file mode 100644
index 0000000..9b7ecfc
Binary files /dev/null and b/img/projects/pipboy/firmwareInputListener.png differ
diff --git a/projects/pipboy.html b/projects/pipboy.html
index 75e29cf..a559f8d 100644
--- a/projects/pipboy.html
+++ b/projects/pipboy.html
@@ -748,6 +748,41 @@
What that isn't, though, is input. Which was the title of this
update (I've changed it now). So I'll tackle that next!
+
+
Actually doing input this time
+ 22/03/2025
+
+
+ OK we're back again baby. And this time I sweart I am going to
+ do input. To show willing I've even already started diving into
+ the firmware to work out how it's done!
+
+
+
+
+
+ So that firmware screenshot tells us all we need to know,
+ really. The Pip object has some events (in this case, 'knob1',
+ which is a) funny and b) the left hand wheel control) one which
+ you can register functions to call.
+
+
+ This screenshot is from the portion of the code that handles
+ switching between the different health animations, but this
+ applies anywhere really. So what we need to do is:
+
+
+ - Create a listener and register it
+ -
+ Make sure we play the knob click audio like the rest of the
+ device does
+
+ - Move our selection up and down the list with each click
+
+ Pretty simple! OK, lets go do that.