summaryrefslogtreecommitdiff
path: root/motion.lua
diff options
context:
space:
mode:
authorrebecca <ubq323@ubq323.website>2026-02-28 23:41:32 +0000
committerrebecca <ubq323@ubq323.website>2026-02-28 23:41:32 +0000
commit2ac06f55702ca18b2e03eab3c590666caf101c0d (patch)
treee2f5626fc8ed70082e2d737b843f67ef3acef9c6 /motion.lua
parent5757034279d8d6eab8560221fdee38370176e846 (diff)
motion
Diffstat (limited to 'motion.lua')
-rw-r--r--motion.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/motion.lua b/motion.lua
index 84d5e37..e469a16 100644
--- a/motion.lua
+++ b/motion.lua
@@ -27,10 +27,10 @@ parallel.waitForAny(
htext.setText(tostring(hstrength))
vtext.setText(tostring(vstrength))
local _,key = os.pullEvent"key"
- if key == 265 then vstrength=vstrength+vdelta
- elseif key == 264 then vstrength=vstrength-vdelta
- elseif key == 262 then hstrength=hstrength-hdelta
- elseif key == 263 then hstrength=hstrength+hdelta
+ if key == 265 then hstrength=hstrength+hdelta
+ elseif key == 264 then hstrength=hstrength-hdelta
+ elseif key == 262 then vstrengtv=vstrengtv-vdelta
+ elseif key == 263 then vstrengtv=vstrengtv+vdelta
elseif key == 67 then p.launch(yaw, pitch, hstrength)
elseif key == 86 then vover = not vover
vtext.setAlpha(vover and 255 or 0)