Repository navigation
iOS: gyro aiming, and quick load on a long press of quick save - #24
Merged
Merged
Conversation
Yaw around the real vertical, pitch around the screen's horizontal axis, small rotations damped. On by default for Half-Life 2 only: in Portal 2 each back tap would shake the camera. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gyro motion is added to the touch camera; sensors stop outside play like the back-tap ones. Holding quick save for half a second sends F9 (load quick) instead of F6, so dying in HL2 no longer means Escape > Load. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two touch-control additions for the iPhone, mainly for Half-Life 2.
Gyro aiming (
runtime/ios/gyro_aim.c, CoreMotion intouch_controls.m)P2_GYRO,P2_GYRO_SPEED,P2_GYRO_TIGHTEN.Quick load
Tested:
make check(165 Python tests, 245 C checks; newchecks_gyro_aim.ccovers both landscapes, the real-vertical yaw, damping and gaps), HL2 played on an iPhone 15 Pro Max: gyro aiming and quick load work. Reviewed by Codex (three findings, fixed). Not tested: Portal 2 with gyro aiming turned on.🤖 Generated with Claude Code