This page is for the curious, for adding support for new games, and for developers. You don’t need it to play.
winmm.dll (or version.dll) plus a Gyro4All folder next to the game executable. No loader
(UE4SS etc.) required.engine: in the log,
Engine=Unreal / Engine=RE in Gyro4All.ini to force one). Unreal Engine 4/5 and, since 1.0, Capcom’s RE Engine;
more engines since (see GAMES), among them Piranha Bytes’ Genome (ELEX, ELEX II, Risen 3, Risen).PlayerController.ControlRotation in real degrees (float
rotators on UE4, double rotators on UE5). Unity Mono/IL2CPP games use Camera.main and compose the turn into its world
Transform.rotation through the scripting runtime’s exported API; Time.timeScale, Cursor.visible and vertical
Camera.fieldOfView provide pause, cursor and zoom state. If the game keeps rebuilding that Transform, the probe (below) looks for the value the
game builds it from, and until one is found the gyro goes to the game as right-stick input. A [Unity] profile, which
the probe writes, names that value. A camera that never answers look input (a fixed scene camera), or an orthographic
one, is left alone.StickFallbackLearned=), so the next session starts with it. Turns slower than the game’s smallest stick
speed go out as short pulses, so slow aiming isn’t lost; turns faster than the game’s top stick speed are capped
there. Your own
right stick keeps working. It switches back as soon as the game keeps the writes again, or on another camera. It
needs no setting; games that read the controller through Steam Input or their own SDL can’t get it. In a game whose
writes always last, where it would only start by mistake (the gyro pushed against the pitch limit, a scene that takes
the camera over), StickFallback=0 (Gyro4All.ini or the game’s profile; restart the game) turns it off: the gyro
then never goes to the right stick (Mass Effect 3’s profile does this). To test it in a
game whose writes last, StickFallbackTest=1 (Gyro4All.ini or the game’s profile) forces it on in the first minute
of play and every other minute after, with a notice at each switch.StickCamera=1, off by default): for games whose right-stick turn is too slow even at full
deflection. Gyro4All turns the camera with the right stick itself, written in degrees like the gyro, so there is no
speed cap, and the game reads a centred right stick. No mouse is emulated, so the game keeps its controller prompts
and UI; the stick click (R3) still works. See Stick camera.SensorPacing=1, on by default): the controller’s reports reach the PC at uneven intervals
and are read once per frame, so a frame can get 8 or 12 ms of motion in a 10 ms frame: the camera turns unevenly at a
steady hand, where the stick is smooth. Gyro4All plays the motion back in the controller’s own time instead, so each
frame turns by the motion of its own length, also with VRR and a changing frame rate. By default it plays the motion
as far behind the frame as the last report usually is (SensorPacingDelayUs=-1, about 2 ms with a DualSense over
USB), so the average latency is the same as without it, and carries the last rate forward when a report is late. It
never turns against your motion: when it carried a turn too far, the difference is taken back while you keep turning.
SensorPacingDelayUs=0 plays up to the frame time itself (the last rate carried forward every frame), SensorPacing=0
turns it off. Both apply when Gyro4All.ini or the game’s profile is saved.gyrolib.ini:
Active drift limit (calibration.active_residual_limit_dps, 0.15 deg/s by default, 0-2): the largest residual
drift it learns while the gyro is in use; higher values follow a worn controller’s wandering bias but can absorb
very slow turns. Active calibration time (calibration.active_time_constant_s, 8 s, 1-30): how fast that
correction is applied; lower adapts faster. Manual reference range (calibration.manual_reference_limit_dps,
0.5 deg/s, 0-2): how far it may move from a completed manual calibration (“Recalibrate gyro”).context.<id>.gyro.tightening_dps, 0-10 deg/s, 0 = off) scales motion below
that speed down, and since GyroLib 1.4.0 works with Smoothing Off. Gyro speed deadzone
(context.<id>.gyro.speed_deadzone_dps, 0-10 deg/s, 0 = off, GyroLib 1.4.0) stops the camera at or below that
speed, like Steam Input’s Gyro Speed Deadzone.F10 by default): sensitivity, activation button or
trigger, invert axes, smoothing and more, saved to gyrolib.ini. Edits to gyrolib.ini are also reloaded
live while the game runs. Next to it, Gyro4All’s own settings window opens (a small “Gyro4All settings”
button in GyroLib’s panel; click it or press L3+R3 to expand it in GyroLib’s panel’s place, which closes while it is
expanded and comes back when it folds, so only one of them follows the controller): the XInput emulation mode, native flick stick, stick
camera and the zoom-compensation FOV, edited live and saved to Gyro4All.ini (what needs a restart or a
save says so). It follows the language picked in GyroLib’s panel (English, French, German, Spanish, Italian or
Portuguese), switching with it. The same window appears in the panel of non-DX12 games (drawn by gyro4all.dll). Gyro4All declares GL_HOST_MENU_STATE to GyroLib, plus native right-stick
suppression while it translates the controller to XInput or while the game reads a PlayStation controller itself
through a known HID or Raw Input report layout (NativeFlickStick, applied on save; the right stick is checked against SDL
whenever it moves, and a mismatch withdraws it), and long-press blocking (GL_HOST_LONG_PRESS_BLOCKING)
wherever it can change the buttons the game reads (the controller shown as XInput, a real XInput controller, or
the game’s own PlayStation controller reports once their buttons were checked); no touchpad suppression (see
Current scope). The recenter step callback (gl_set_recenter_step_callback) is
registered from the start (so the main menu’s panel shows it) and kept while the active view’s rotation can be
read (any view: the generic ControlRotation or a profile’s Property=/Offsets=), and withdrawn in a view
with Recenter=0 or whose rotation can’t be read. It moves the pitch to the view’s RecenterPitch= (default 0) through the same
writes as the gyro (all offsets, WorldRotation, OnGyro=). Custom cameras are best effort: their level may
not be 0. The log says recenter: available in view N / unavailable in view N (...).Present/ResizeBuffers between threads. In DX12, an RGB10A2
swapchain on an HDR display is drawn as HDR10, as GyroLib does.Gyro4All.log, plus an optional probe (F7
snapshot / F8 diff) to find which rotation a game’s camera actually uses.Set in Gyro4All.ini or in a game’s profile ([Gyro4All] section, overrides Gyro4All.ini):
| Setting | Default | Meaning |
|---|---|---|
StickCamera |
0 | 1 = the right stick turns the camera through Gyro4All (restart the game after changing it) |
StickSpeed |
360 | Yaw at full deflection, degrees/s |
StickSpeedPitch |
200 | Pitch at full deflection, degrees/s |
StickDeadzone |
10 | Radial deadzone, % |
StickCurve |
2.0 | Response exponent: 1 = linear, higher = finer near the centre |
StickEdge |
90 | Deflection (%) past which the speed ramps up |
StickEdgeSpeed |
720 | Yaw after the ramp, degrees/s (pitch scaled alike) |
StickEdgeRamp |
400 | Time to reach StickEdgeSpeed while held past StickEdge, ms |
StickInvertY |
0 | 1 = stick up turns the camera down |
StickCameraPassButtons |
(none) | Comma-separated buttons (same names as the sensitivity profiles: RB, LT, R1…). Held over 200 ms, they give the right stick back to the game until released, e.g. RB for a weapon wheel picked with the right stick |
GyroOffButtons |
(none) | Comma-separated buttons (same names as the sensitivity profiles: Y, Triangle, RB…). Held over 200 ms, the gyro stops turning the camera until they are released (log: gyro off: a GyroOffButtons button held): for a weapon wheel the game opens on a held button but doesn’t freeze the camera for, e.g. Triangle in Zombie Army 4. A short press (switching weapons) doesn’t stop it |
Changes to the Stick* values apply when the file is saved, without a restart. Diagonals turn no faster than the axes.
When it turns:
It can’t hide the stick with Steam Input or a real Xbox controller, so the stick camera stays off there.
Limits:
StickCameraPassButtons, or set StickCamera=0 in that game’s profile.| Game | Engine | Profile needed | Notes |
|---|---|---|---|
| Pacific Drive | UE 4.27 | yes | On foot uses the generic path. In the car the gyro drives the car camera and overrides the auto-recentering while driving. |
| Returnal | UE 4.25 (modular build) | no | Generic path working OOB. A good setup is gyro on while L2/R2 is held |
| Cronos: The New Dawn | UE 5.4 | yes | The camera ignores ControlRotation; the profile writes the look rotation inside the pawn’s View component. Panel verified with HDR + RenoDX. |
| Gears of War: E-Day | UE 5.6 (Xbox / Game Pass build) | no | Generic path, campaign tested WITH EAC DISABLED. Install in Binaries\WinGDK renamed to version.dll (with RivaTuner running, the game loads the system winmm.dll first). Protected exe: Gyro4All switches to inline hooks and finds the engine objects with a heap scan, so the gyro becomes available a few seconds after the main menu appears. The game ships EasyAntiCheat: don’t use Gyro4All in online modes. |
| Life is Strange Remastered | UE 4 (pre-4.25 property system), DX11 | yes (shipped) | Found with the camera probe. The camera splits pitch and yaw across two raw rotators, and the walking camera blends back to an automatic follow camera unless it gets look input; the profile writes OnGyro= to keep it manual. No settings panel (DX11): configure via gyrolib.ini. |
| Luto | UE 5.5.4 | no | Generic path working OOB. Only reads XInput: Gyro4All shows the DualSense / Switch Pro as an Xbox controller (Epic, no Steam Input). |
| The Outer Worlds: Spacer’s Choice Edition | UE 4 | no | Generic path. Native DualSense (delay-loaded libScePad.dll): XInput translation stays off. |
| Mortal Shell | UE 4.25+, DX11 | yes (shipped) | Generic camera path. The game links an old Sony pad library (WinDualShock) that knows only the DualShock 4: the profile sets DualSenseAsDualShock4=1 (PlayStation icons, rumble, light bar). Other controllers (Switch Pro, DirectInput) are shown as Xbox ones; the Epic Online Services overlay rewrites the game’s XInput import after Gyro4All, which takes it back. Tested with a DualSense over USB and Bluetooth (buttons, sticks, rumble, light bar, native flick stick). No settings panel (DX11). |
| Warhammer 40,000: Space Marine 2 | Swarm Engine, DX12 | no | Swarm module: the third-person camera controller’s pitch/yaw, found by a heap scan. Tested solo with EAC disabled (DualSense over USB, the game’s own DualSense support). Rename the game’s old msvcp140.dll. |
| Hogwarts Legacy | UE 4 | yes | Third person detached camera, new objects detected. Native DualSense (delay-loaded libScePad.dll): XInput translation stays off. |
| Visage | UE 4 | no | First person camera XInput translation/Steam input needed. |
| Valor Mortis | UE 5.7 | no | |
| PAYDAY 3 | UE 5 | yes (shipped) | Generic path in normal play; during some actions the camera is turned by a camera modifier (SBZClampCameraRotationModifier, raw +0x68), which the profile adds as a Match=Camera view: Gyro4All switches to it and back by itself. Case-preserving names build (WITH_CASE_PRESERVING_NAME): Gyro4All detects the different name pool layout by itself. Native DualSense (HID): XInput translation stays off. Always-online co-op game: use at your own risk, private or solo lobbies only. Tested with GyroUE 0.9.1 (DualSense), same engine code; not yet with Gyro4All. |
| Resident Evil 7 biohazard | RE Engine (TDB 70, the 2022+ DX12 build) | yes (shipped) | The gyro turns the free-look camera controller (app.PlayerCamera, MaximumOperatable); scripted cameras, animations and pause turn it off. The game only reads XInput (it takes a real DualShock 4 found through DirectInput, but not a DualSense, nor a DualSense shown as a DualShock 4): the profile sets XInput=2. Tested with a DualSense, Steam Input off. |
| Onimusha: Way of the Sword (demo) | RE Engine (TDB 82) | no | The gyro turns the game camera (app.CameraManager._InGameCameraOperator._GameCamera) through its base param worker’s current param (_BaseParamWorker._CurrentParam -> _AttachDeg), and the camera’s blend while aiming in and out; pitch within the game’s _StaticPitchLimit. Off during lock-on, Issen and the death camera. Tested with a DualSense, REFramework installed. |
Tested with a DualSense over USB/BT and Nintendo Switch Pro Controller. Requirements and limits:
winmm.dll, which more games import than version.dll. If the game already has a winmm.dll
proxy from another mod, or Gyro4All doesn’t load (no log), rename it to version.dll: the same DLL works under both
names. The installer refuses to overwrite a foreign proxy.All diagnostics go to Gyro4All\Gyro4All.log (probe results, if enabled, to Gyro4All\Gyro4All-probe.log).
| Symptom | Check |
|---|---|
| No log file | winmm.dll is not next to the game exe (it must be in Binaries\Win64 or Binaries\WinGDK), another mod’s winmm.dll replaced it, or the system winmm.dll was loaded first (e.g. by RivaTuner’s hooks, seen in Gears of War: E-Day): rename it to version.dll. |
“Entry point timeGetDevCaps not found” |
A GyroUE older than 0.4.7 named winmm.dll. Update: 0.4.7+ exports winmm too. |
motion=0 in the status line |
The controller isn’t visible to SDL: close remappers, try USB, check Steam Input. |
view=none in gameplay |
The pawn is missing or a placeholder. The game may need a profile. |
settings: GyroUE folder found (former name): ... |
First start after updating from GyroUE: its GyroUE.ini (as Gyro4All.ini), gyrolib.ini and profiles were copied into Gyro4All\ (never over existing files) and the old folder renamed to GyroUE.migrated. |
engine: none detected, using Unreal |
The game’s exe and folder don’t look like an Unreal game (renamed exe outside Binaries\Win64). Unreal is used anyway; Engine=Unreal in the [Gyro4All] section of Gyro4All\Gyro4All.ini (or the game’s profile) sets it explicitly. |
applied yaw changes but the camera doesn’t move |
Custom camera: see Finding the camera. |
camera: '<view>' is rewritten by the game (or is ignored by the camera), trying '<next>' (N degrees carried over) / the camera follows view '<view>' now (Match=Camera) |
The game switched between rotations of the same view target and Gyro4All followed it (see Several cameras for the same view target). |
probe: started during play (...) / probe: camera learned: ... / probe: stopped (...) |
A probe started from the probe key or by AutoProbe, and what became of it (see Learning a camera during play). probe: ... turns yaw only: live test of N rotation(s) that followed the camera's pitch alone, then probe: camera learned: yaw in <rotation> (view N '<label>'), pitch in <rotation>: PitchObject= written to [View.<key>]: the camera keeps yaw and pitch in two objects (see “Yaw and pitch in two objects” there). |
ue: ProcessEvent is vtable[N] at <module>+0x... (FunctionFlags +0x...), ue: <Class>.<Function>: found (...), profile: view N <Function> not called on <object>: <why> |
A Function= view: the engine function that turns it and where Gyro4All calls it (see Turning through the engine). ProcessEvent not found or has no function: that view doesn’t turn (report it with the log). ProcessEvent(...) faulted: calls are off until the game restarts. |
update rotation: <class> UpdateRotation is vtable[N] at <module>+0x... (reads RotationInput +0x... first): hooked, the gyro goes into RotationInput |
A Property=RotationInput view: the gyro is added to the stick’s look input inside the controller’s UpdateRotation (see The stick’s look input). N functions of its vtable read RotationInput first ... not found / not unique: the controller’s UpdateRotation couldn’t be told apart, so that view doesn’t turn (report it with the log). |
scene: the pawn is in a cutscene (IsInActiveCutscene): gyro paused / scene: pause condition '<condition>' holds: gyro paused / scripted scene over |
Unreal: scripted moments count as a pause, so the gyro stops as the stick does: a pawn with a reflected IsInActiveCutscene set, or one of the profile’s PauseConditions= (Dead Island 2: Pawn.CharacterMovement.MovementMode==5, its scripted scenes fly the character). A character in flying mode doesn’t pause the gyro by itself (games where the player flies). profile: pause condition '<condition>' at start lists each one read; ... ignored: <why> a malformed one; scene: pause condition '<condition>' can't be read from <class> (path not found / no such number, bool or object property): that pawn (or controller, camera) doesn’t have it, so it doesn’t pause there (logged once per class). A view’s ActiveWhen= logs the same as scene: view condition '<condition>' can't be read from <class> (...): that view stays off. |
profile: the profile file changed, views read again |
The profile was edited, or the probe added a view: its views apply at once. |
The gyro stops mid-game, gyro on still logged |
Look at the lines just before: focus: lost to <program> (window class ...) (another window is in front), gyro: GyroLib suspends the gyro (activation mode, focus, pause, menus or calibration), gyro: motion data lost, gyro: GyroLib's sample count restarted (the controller was reopened) or gyro: the controller reads as lying still while you hold it (no real gyro data). If applied yaw keeps changing, camera: stopped following the gyro (...) - target ..., camera manager ..., CameraStyle ... names the camera that took over. |
glacier: aim <camera> for N ms ... (007 First Light) |
One line per L2 aim (the first 40 of a session), and for any camera whose view didn’t follow the gyro (NOT FOLLOWED, up to 200): what became of the aim point (point turned, or skipped: none, unreadable, near, far), how often the game rewrote it (rewritten by the game), the turn asked against how far the view moved, and the game’s own mouse/keyboard input meanwhile (game mouse input, keyboard, cursor moved). Mouse input during an aim that didn’t follow: the game took the aim from the mouse (it switched to its keyboard-and-mouse controls); keep the mouse still while playing with the controller. |
glacier: gyro press for N ms ... (007 First Light) |
One gyro activation: degrees asked against degrees the view moved, how long after the first 0.5 degrees the view responded, and each camera it went through (orbit, no state, old state). The first 20, then only those with 250 ms or more before the view responded (up to 300). |
glacier: transition camera <camera> ... (007 First Light) |
One stretch of gyro frames on a camera that blends others (L2’s zoom): on an old orbit state when it took over an entity with an earlier camera’s state, how many frames turned the cameras, whether the view followed, and the orbit update’s list. The first 12, then those with something to report (up to 300). |
glacier: camera <camera> has an orbit state the orbit update doesn't use (007 First Light) |
Once per entity: the active camera looks like an orbit camera but the game doesn’t update it, so the gyro turns the list’s cameras too. |
glacier: orbit update's list, new set: ... (007 First Light) |
Each set of orbit cameras the game updates, the first time it appears. |
unity: IL2CPP runtime attached (reflection exports found) / unity: API ready (...) |
The game’s scripting runtime was found, and which optional signals it has (FOV, pause, cursor: a stripped build can lack them, which only loses that signal). reflection exports missing: no probe in this game. |
unity: the managed call <method> threw an exception |
A Unity call failed, usually on an object the game just destroyed. The first 20 are logged. |
unity: Cursor.visible=... lockState=... / unity: the cursor is hidden but not locked ...: the gyro stays off this camera |
Every change of the cursor’s state (lockState: 0 None, 1 Locked, 2 Confined). Without a profile, a hidden cursor that isn’t locked means the game has no mouse look here, so the gyro leaves that camera alone. the cursor isn't locked, yet the camera turned with look input means the rule may be wrong for this game; a profile (the probe) isn’t subject to it. |
unity: the camera doesn't answer look input (a fixed scene camera): the gyro stays off it / the camera answers look input again |
Three windows of 2 s with stick or mouse input and no camera motion; two windows with motion bring the gyro back. Then gyro off: no gameplay view (target fixed scene camera). Menus, pause and the panel don’t count. |
unity: the gyro turned Camera.main by N degrees but it stayed M: the game rewrites its Transform; gyro as right stick / the camera keeps Transform writes again |
The game rebuilds the camera; the gyro goes to the stick and the probe starts by itself. A small test write every few seconds notices when writes stay again; a new camera starts over. |
unity: learnt the game's pitch clamp: A..B deg |
The game pulled a pitch written past its clamp back to the same value 3 frames in a row: the gyro’s turn stops there from now on. |
unity: the gyro turned the profile's values by N degrees but its camera moved only M |
With CameraField=: the profile’s values don’t turn the camera. The profile may be outdated. |
unity: profile path: field <name> not found on <class> / unity: profile: ... |
A [Unity] path doesn’t fit the game: wrong name, a static field, or a value of the wrong type. Logged once each. |
probe: the camera that turns with the stick or mouse: <hierarchy> / probe: camera VERIFIED: pitch <class>.<path>, yaw <class>.<path> -> <file> / probe: no camera: ... |
The Unity probe’s steps. Details in Gyro4All-probe.log. |
| Camera drifts slowly | Rest the pad in a menu for a few seconds (bias= in the status line should become non-zero) or use “Recalibrate gyro”. |
gyro: automatic calibration N, during play residual limit R deg/s, time constant T s, manual reference limit M deg/s |
At start: GyroLib’s automatic calibration mode (0 off, 1 menus only, 2 any time) and its limits in gyrolib.ini (calibration.active_residual_limit_dps, calibration.active_time_constant_s, calibration.manual_reference_limit_dps; panel: Any time, then “…”: Active drift limit, Active calibration time, Manual reference range). A drift that comes back while playing with a worn controller: raise Active drift limit (TROUBLESHOOTING). |
gyro: the reopened controller has no calibration (bias 0 0 0): gyrolib.ini loaded again for its saved one (result N), then gyro: calibration restored after the reopen: bias=(...) or calibration still missing after the reopen (with a notice) |
The controller was reopened (another USB port, a Bluetooth drop) and GyroLib gave it no bias, so the camera would drift at the sensor’s own offset. Gyro4All loads gyrolib.ini again for the saved manual calibration; if that doesn’t bring it back, recalibrate with the controller lying still. kept its calibration: nothing to do. |
| Panel doesn’t open | Look for overlay: lines (DX11/DX10/DX9 games: also panel: lines, e.g. panel: captured D3D11 swapchain ..., panel: D3D11 renderer ready ..., panel: no frame presented for N ms: panel closed). Try from the game’s pause menu. As a fallback, edit gyrolib.ini directly. |
| Double motion | Steam Input or another tool is also converting the gyro to mouse. In the F10 panel, set “Steam Input mouse” to Block (or Convert movement). |
steam mouse: blocked (Block) (view N) / converted (Convert movement) / passes through (<why>) |
Games using the gyro4all.dll panel: what happens to Steam Input’s mouse, per the panel’s “Steam Input mouse” row for view N. left to GyroLib's own option (DX12 panel) in DX12 games. Every 10 s while it acts: N injected mouse motions blocked, M injected Raw Input packets emptied. Raw Input reads hooked (... failed): Block still stops the cursor, but a game reading Raw Input or DirectInput still gets Steam’s motion. |
idtech: the view stops at N degrees up (or down) |
id Tech 6+ (DOOM 2016, Eternal): the view’s pitch limit, learnt the first time the gyro pushes against it; the gyro’s turn stops there from then on (otherwise the stick fallback took the stopped view for undone writes). |
ue: core classes not found (and a notice after 60 s) |
Gyro4All can’t read this game’s engine data, so nothing can turn the camera and the probe can’t help. Report the game with the log: the ue: core classes missing: line says what was found instead. |
xinput: ... shown as XInput controller N |
The controller is translated to an Xbox controller in slot N. |
xinput: ... not shown: <reason> |
Why it isn’t: an Xbox/Steam Input/remapper controller is connected, or the game reads pads itself (Sony’s pad library, its own SDL, Raw Input for gamepads, the controller’s HID device, a DirectInput game controller it reads). XInput=2 overrides the last group. |
nativepad: the game reads 054C:0CE6 (...): N bytes, first byte 0x31, report 0x31 (DualSense, Bluetooth) |
The game reads the controller itself (Sony’s pad library). unknown layout, left alone means a report Gyro4All doesn’t know: no native flick stick for it. |
nativepad: native right-stick suppression available |
The game reads the selected controller through a known report layout: GyroLib’s flick options are offered at once (the stick is checked against SDL when it moves until the check below passes). |
nativepad: ... matches SDL / doesn't match SDL |
The right stick in the game’s reports agreed with SDL while you moved it (the check passed). doesn't match SDL or CRC isn't the expected one: Gyro4All leaves the reports alone and the flick options disappear (report it with the log). |
settings: NativeFlickStick=N (applied without a restart) |
The setting changed in a saved Gyro4All.ini or profile; turning it off hides the flick options again. |
dualsense: the game's own PlayStation support closed the DualSense unread ... |
The game’s Sony library only knows the DualShock 4. DualSenseAsDualShock4=1 (and DualSenseAsDualShock4Learned=1, which says Gyro4All wrote it) was written to its profile (Gyro4All\profiles\<exe>.ini, created if needed); the DualSense is an Xbox controller until the game restarts. Not done when the profile already has a DualSenseAsDualShock4 value. |
dualsense: the game rejected the DualSense shown as a DualShock 4 too ... |
The DualShock 4 identity Gyro4All had learned didn’t work either (the game opened the controller and closed it unread): the game doesn’t use PlayStation controllers this way (Resident Evil 7 only takes a real DualShock 4 it finds through DirectInput). The DualSense is an Xbox controller from then on, and DualSenseAsDualShock4=0 is written to the profile so it isn’t learned again. |
nativepad: DualSense 054C:0CE6 (version ...) shown to the game as a DualShock 4 |
DualSenseAsDualShock4=1 in the game’s profile: the game asked who the controller is and got a DualShock 4. Then feature report 0x.. asked by the game: answered with ... lists what it checked, and output report 0x05 -> DualSense report 0x02/0x31 its rumble and light bar. opened ... Bluetooth, shown to it as a USB DualShock 4 and Bluetooth, ... reads, converted for a Bluetooth DualSense. If the game opens the controller and closes it for good right after the identity line, it rejected the emulation: when Gyro4All had learned it, it takes it back by itself (dualsense: the game rejected ...); when you or a shipped profile set it, report it with the log. |
nativepad: the game's controller reports made idle (GyroLib's panel has the controller) |
While the settings panel is open (and until you release the button that closed it), the game reads an idle controller, so navigating the panel doesn’t also move you in the game. passed through again when that ends. The controller shown as XInput, and real XInput controllers, read idle too. |
long-press blocking available (...) |
GyroLib’s Block long press works for your controller: with Hold or Hold to disable on a single button, a short press of that button still does its game action (when you release it), a hold only controls the gyro. For a controller the game reads itself, it becomes available after nativepad: ... the buttons in the game's reports match SDL, i.e. after you’ve pressed a few buttons in game. unavailable when the game reads the controller in a way Gyro4All can’t change (Raw Input, DirectInput). |
longpress: button N tapped / held |
Long-press blocking at work (first few logged): tapped = a short press passed to the game, held = a hold whose game action was blocked. N is SDL’s button number (0 south/Cross, 1 east/Circle, 2 west/Square, 3 north/Triangle…). |
nativepad: right stick centred in the game's reports |
Flick stick is active: the game sees a centred right stick (passed through when it stops, e.g. in menus). |
xinput: XInput=2: the game's access to HID device 054C:0CE6 refused |
With XInput=2 the game tried to open the controller itself (its own DualSense support) and was refused, so it only gets the Xbox controller. Raw Input registration ... dropped is the same for Raw Input. |
xinput: XInput=2: the game's Windows.Gaming.Input class Windows.Gaming.Input.Gamepad refused |
Unity only: with XInput=2 the player’s Windows.Gaming.Input gamepad support (Unity 6) is refused, so it falls back to XInput and reads the Xbox controller Gyro4All shows. |
hooks: the import of ... was written back by something else (now <module>) |
Another module (an overlay such as Epic Online Services’ EOSOVH-Win64-Shipping.dll) rewrote a game import Gyro4All had patched. XInput imports are patched again so the translated controller keeps reaching the game; others are left to it. |
gyro: Steam Input reader started (the game's steam_api64.dll) |
The game uses Steam: GyroLib also reads the controller’s gyro through the game’s own Steam Input (it borrows the game’s Steam service and changes nothing in it). This is how the gyro works when Steam Input hides the controller and the game reads Steam Input itself (Monster Hunter Wilds). Steam Input reader: unavailable is normal while Steam Input has no controller. |
stick fallback: the game undid the gyro's camera writes 8 frames in a row: gyro as right-stick input; game's stick: ... (or forced on (StickFallbackTest)) / stick fallback off: <why> |
The game kept putting the camera back after each gyro write (a scripted aim, or a camera rebuilt from other state), so the gyro went to the game as right-stick input until <why>: the game keeps the writes again, another camera, or no readable view. the stick turns nothing means the game doesn’t read the controller through a path Gyro4All can change (Steam Input, its own SDL): no fallback for that camera. game's stick: radial dead zone 0.20, curve 1.50, yaw 160 and pitch 110 deg/s at full stick, 2 frames late (default, to learn) is the model of the game’s stick it starts with ((saved): from StickFallbackLearned=, (learnt): this session). stick fallback: the game's stick, learnt: ... (the model explains N% of the camera's motion): the model learnt from the camera (again when it changes); (inverted) after an axis the game turns the other way. stick fallback: StickFallbackLearned=... saved to <profile>: kept for the next session. While it runs, a status: stick fallback: stick (x, y), game's stick: ... (learnt, explains N% / saved for this game, learning / default, learning) line follows the status line. With MotionTrace=1, K,x,y,yaw,pitch,used lines in motion-trace.csv give each frame’s deflection, the camera’s turn and which axes the learner took (with StickFallbackTest=1 the trace starts with the fallback). stick fallback test: forced on / detection only for a minute: StickFallbackTest=1. settings: StickFallback=0: the fallback is off (never starts); with an engine that has no camera hook, stick fallback: off (StickFallback=0), and the engine has no hook for this game's camera follows, and the gyro turns nothing. |
settings: SensorPacing=1 (...): motion played back in sensor time, delay automatic (or delay N ms, SensorPacing=0) |
Sensor-time pacing’s settings, at start and when Gyro4All.ini or the profile is saved with a change. Every 30 s while the gyro turns: status: sensor pacing: delay D ms (automatic), N frames paced, P% past the last report (extrapolated), B left to GyroLib's burst delivery, S stalls: D is how far behind each frame the motion is played; P the frames whose time came after the last report read (its rate carried forward); B frames turned as GyroLib gave them while it spreads a Bluetooth pad’s bursts itself; S game stalls (a frame over 100 ms), whose turn goes out at once. In motion-trace.csv (MotionTrace=1) the F lines’ raw yaw/pitch are GyroLib’s, the last two the paced turn. B lines hold GyroLib’s bias 10 times a second, M lines mark each press of F9 (a notice confirms it). For a drift report, set MotionTrace= to a long session in seconds (about 170 MB per hour), press F9 when the view slides, then run tools/motion_trace_drift.py on the file. |
settings: StickCamera=1 (...): yaw ... deg/s, pitch ... |
The stick camera’s settings, at start and each time Gyro4All.ini or the profile is saved. |
settings: ZoomStrength=100 ZoomSource=Auto \| manual zoom on: aim LT (Hold), cycle R3, levels 55,30 against 90 horizontal, remember off, 1 reset button(s), ramp 150 ms (...) |
Zoom compensation’s settings, at start and when a save changes them. manual zoom off (needs ZoomAimButton= and ZoomLevelsFOV=): no manual zoom. |
zoom: level 2 of 2 (30 degrees) / zoom: not aiming |
Manual zoom’s level changed (aim button, cycle button, reset button, end of gameplay). |
status: zoom: manual field of view 30.0, unzoomed 90.0 (horizontal degrees), level 2, gyro x0.268 at ZoomStrength 100%, Adapt to Zoom on in view 1 |
With the status block: the FOV reported this frame (the game's … vertical degrees when the engine reports it), the gyro’s scale and whether Adapt to Zoom is on in the active view. No line: nothing reported (no FOV source, or not in a gameplay view). |
stick camera: on (the controller shown as XInput) / on (the game's own controller reports) |
The right stick turns the camera through Gyro4All; the game reads it centred. |
stick camera: off while GyroLib's flick stick uses the right stick / off while the stick fallback turns the camera |
Flick stick (priority) or the stick fallback has the right stick. |
stick camera: unavailable: Gyro4All can't hide the right stick from the game here (...) |
Steam Input or a real Xbox controller, or the game’s own controller reports aren’t checked yet (move the right stick). The game keeps its own stick. A status: stick camera <state> line follows the status line every 30 s. |
dinputpad: stick fallback on the game's right stick (N-byte state, Z ..., Rz ...) |
The first time the fallback moves the right stick of a DirectInput controller the game reads, with the axis ranges the game set. |
dinputpad: the game opens a DirectInput game controller (VID:PID, type ...) |
The game created a DirectInput device for a controller. It only counts as the game reading controllers itself once it reads it (xinput: the game reads controllers itself: it reads a DirectInput game controller ...). |
xinput: the game imports the HID library but hasn't opened a PlayStation controller in 30 s |
The game imports hid.dll (usually a sign of Sony’s pad library) but never opened the controller: it is translated. If the game opens a PlayStation controller later, the translation stops (its own PlayStation support is back). |
xinput trace: ... |
XInputTrace=1 (diagnostics): every module that calls XInput, and whether the game loads Windows.Gaming.Input, GameInput or DirectInput. |
writewatch: armed on 0x... in N threads, writewatch: writer <module>+0x... (thread ...) |
Diagnostics for finding a camera’s source, off by default: with WriteWatch=on in Gyro4All.ini when the game starts, Gyro4All re-reads WriteWatch every 500 ms; set it to a hex address (e.g. a camera value found with an external memory tool) and a hardware write breakpoint watches those 4 bytes for WriteWatchSeconds (10). Each instruction that writes there is logged once with its registers, its callers (stack unwind, caller #N, with their non-volatile registers) and code bytes, then a summary with how often each wrote. WriteWatch=x:<address> watches a function’s entry instead (an execute breakpoint) and logs the objects it ran on (rcx) and, every 200 ms, the floats at WriteWatchFields=<hex offset>,... from that object. WriteWatch=r:<address> logs the instructions that read or write it (x86 has no read-only breakpoint), to follow an input value forward into the game’s code. Instead of a hex address: exe+<hex offset> (an offset in the game’s exe), or one of the game’s input buffers plus a hex offset, to follow the input forward into the game: di is the buffer of its last DirectInput GetDeviceState (r:di+8: the right stick’s X of a PlayStation controller), xi its last XInputGetState state (r:xi+c: the right stick’s X), ri its last Raw Input buffer (r:ri+24: the mouse’s X movement). No debugger is attached, so it also works on games with anti-debugging (Denuvo). Engine modules add names of their own that follow the object when the game replaces it (Frostbite: cam, the active camera’s rotation interface; writewatch: cam+2C4 moved to 0x...). The game slows down while armed and the watch disarms itself after 100,000 hits (too many hits); remove the setting for playing. |
dinputpad: the game reads controller VID:PID with GetDeviceState (N bytes, ...) into 0x... (...), called from <module>+0x... (thread ...) |
Each place the game reads a DirectInput controller from, once: the call site in the game’s code, the buffer (static, heap or on the caller's stack) and its data format. The last GetDeviceState buffer is WriteWatch’s di address. |
xinput: WMI: the game reads controller VID:PID's DeviceID: shown as an XInput one |
The game checks which DirectInput controllers are XInput ones through WMI (IsXInputDevice); that controller now passes, and the game should poll it (the game polls XInputGetState). |
xinput: XInputGetState hook registered, no game module imports it yet |
The game hasn’t loaded its XInput code yet, or uses another input API (then there is nothing to translate). |
xinput: the game reads buttons with XInputGetKeystroke |
The game takes its button presses as key events; Gyro4All makes them from the translated controller’s state. |
engine: RE (detected) |
re_chunk_000.pak next to the exe: the RE Engine module is used. |
engine: Genome (detected) |
The exe is in a system folder next to data\ini\ConfigDefault.xml and data\packed (ELEX, ELEX II, Risen 3), or in a bin folder with Game.dll, Engine.dll and SharedBase.dll next to data\compiled (Risen): the Genome module is used. |
genome: layout from code (ELEX code shape): camera struct +0x1C0 (pitch +0x3A0, ...), ..., camera update slot 37 |
Genome start-up: the offsets the module uses, read from the game’s own code rather than fixed, so another build of the same code works too; the code shape names the game whose compiled code matched (ELEX, ELEX 2 or Risen 3). Risen 3: genome: the exe's code is encrypted until it starts (Steam DRM): read on the first frame comes first, the layout line once the game runs. ; not found: <what> names what this build’s code didn’t give and what is off because of it (no pause detection, …). |
genome: no camera hook for this build (its code doesn't match the known shapes, ...): the gyro goes to the game as right stick |
Genome: a build whose code the module doesn’t know (a game patch, another store’s build): the layout line above says what is missing. The gyro still works, sent to the game as right-stick input (less exact; still off in menus where the UI state stack or the game mode is known), as in the other modules without a camera hook. tools/genome/shapes.py shows which code shapes stopped matching. |
genome: turn function ELEX.exe+0x... hooked, genome: angle function ...: spurious turns (heading to itself) dropped |
Genome start-up: the gyro’s yaw turns the player’s heading right after the game’s own turn of it, and a rounding artifact of the game that made the camera creep right while the gyro was on is removed. not found instead: the yaw is written to the heading directly (the camera may lag and creep right). |
genome: camera "cam_normal" (or cam_ranged, cam_game_alt, cam_ui_world, …) |
Genome: the active camera. The gyro turns cam_normal* and cam_game* (view Default; ELEX II aims with cam_game_alt too) and cam_ranged* (view Ranged aim, ELEX); other cameras (menus, dialogs) keep it off. |
genome: aim mode from ELEX2.exe+0x... (gCCombatSystem2_PS::IsInAimMode: ...), genome: aim mode on: view Ranged aim |
Genome, ELEX II: it aims with its gameplay camera, so the game’s aim mode (the same check as its IsInAimMode) switches the view to Ranged aim while aiming. With the aim view’s Activation Mode Always on and the default view’s Off, the gyro works only while aiming. |
genome: game mode 0x20 (menu: gyro off) |
Genome, Risen 3: the game’s mode (0 in gameplay; 0x20 its menu, 1 the pause menu, others loading screens). Anything but 0 keeps the gyro off. |
genome: UI states Game > PauseMenu |
Genome: the game’s UI states, bottom to top. Anything on top of Game (PauseMenu, GameMenu, QuickSlotWheel, GameWorld, …) is a menu: the gyro is off. ELEX II keeps its gameplay camera behind its menus, so this is what tells them apart there. |
genome: Risen: ProcessBegin and ProcessMovements hooked; gyro as the game's turn actions ... |
Genome, Risen (first frame): the gyro goes into the game as its own turn input, like the right stick’s, so the game’s menus, dialogs and cameras treat it the same. The line lists what was read from the game’s code: the yaw’s and pitch’s scales, the input modes the gyro runs in, and small turns' precise angle on (the game rounds turns under about 0.014 degrees a frame to nothing; Gyro4All gives the player’s small turns their exact angle). genome: Risen: no camera hook for this build (...) instead names what this build’s code didn’t give; the gyro then goes to the game as right stick. |
genome: Risen: input mode 3 (inventory): gyro off |
Genome, Risen: the game’s input mode. The gyro runs in normal, melee, bow, crossbow, magic, cast, levitate, beast and nautilus; any other mode (inventory, map, log, character, dialog, trade, loot, the pause menu, …) keeps it off. |
status: genome: Risen: heading turned X, gyro yaw Y, rest Z deg; elevation ..., gyro pitch ...; stick turns merged N, gyro yaws not taken M; small turns made precise K (changed D deg) |
Genome, Risen, every 30 s: the player’s turn and the camera’s elevation in gameplay against the gyro’s; rest is the right stick, about 0 with it idle. merged: frames where the stick and the gyro turned together. not taken: gyro turns the game didn’t give the character (a menu or a camera that locks it). |
status: genome: heading turned X, gyro Y (...), rest Z deg; spurious turns dropped N |
Genome, every 30 s: the heading’s turn in gameplay against the gyro’s; rest is the right stick or mouse, about 0 with them idle (anything else is drift). |
re: TDB 70 ready, re: via.Application ..., re: gyro frame hooked before LateUpdateBehavior |
RE Engine start-up: the type database, the engine’s application object and its per-frame steps (all listed once, name(priority)) were found, and the gyro runs once per frame before that step. re: ... the gyro can't run in this game says which part failed. |
re: camera <controller> (type N[, animation][, paused]) |
RE Engine: the player camera’s current controller. MaximumOperatable (type 0) is free look, where the gyro turns the camera; anything else (FullAnimation, ElasticRotation…) is a scripted camera and the gyro stays off. re: camera no player in menus and loading. |
overlay: Present chain (call N): called from <module>; slot 8 ...; our original <module> (starts with a jump to ...) |
D3D10/D3D11 games: who presents through the settings panel’s hook, logged three times per session. A jump at the start of the original is another overlay’s inline hook (RivaTuner’s on dxgi.dll’s Present), which runs after the panel; a slot that no longer holds our hook was rewritten by another module. Useful when another overlay misbehaves with Gyro4All. |
deps: lines |
Before loading GyroLib, Gyro4All checks which copy of each DLL GyroLib shares with the game (Visual C++ runtime, SDL3): one already loaded by the game, or one next to its exe, is the one GyroLib gets. older than 14.40, GyroLib ... would crash the game turns the gyro off for the session (the game still starts) and shows the fix: rename the game’s copies so Windows’ newer ones are used. older than GyroLib's build tools and the game's own SDL3 are warnings only. |
DualSense --HID--> SDL3 (inside gyrolib.dll)
--> GyroLib: calibration, fusion, gyro space, smoothing, curves, activation, views
--> gl_update() -> yaw/pitch delta in degrees
--> Gyro4All, on the game thread once per frame:
scene <- GEngine -> GameViewport -> World -> LocalPlayer -> PlayerController,
Pawn, PlayerCameraManager view target, WorldSettings pauser
gating <- focus, pause, cursor, "no gameplay view" (main menu DefaultPawn)
apply -> profile view rotation += delta (default: ControlRotation)
winmm.dll is a proxy for the system DLL of the same name. It also exports all of version.dll, so it can be
renamed to version.dll; either way every export is forwarded to the System32 DLL with its own file name, so the
game behaves normally.PeekMessageW. Unreal pumps window messages on the game
thread once per frame, which is a safe place to read and write game objects. The game’s own code is never
patched. Exception: protected exes whose import table is only a stub filled in later by the protector
(e.g. Gears of War: E-Day). There Gyro4All hooks user32!PeekMessageW inline with
MinHook, and finds the swapchain through the vtable of the real
System32 DXGI factory (so it doesn’t fight Streamline, ReShade or RivaTuner over the dxgi.dll exports). The log says
which mode is used (hooks: ... import-table hooks / inline hooks on exports); GYRO4ALL_INLINE=1 in the
environment forces inline mode.XInputGetState, XInputSetState, XInputGetCapabilities,
XInputEnable, XInputGetKeystroke (by name or ordinal, including delay-loaded ones: UE 5 delay-loads XINPUT1_4.dll) and
XInputGetStateEx are patched in the game modules only, so SDL inside GyroLib never sees the virtual controller.
XInputGetKeystroke gets key events made from the translated state’s changes (buttons, triggers, stick directions,
with key repeat): some games read every button that way and only the sticks with XInputGetState (ELEX).
Once per frame Gyro4All copies the SDL state of GyroLib’s selected controller into the slot it answers for (the
first one with no real controller), and turns XInputSetState into SDL rumble. In auto mode it waits 2 s after
the controller appears, and stays off if a real XInput controller is connected or the game shows signs of reading
pads itself. Sony’s pad library (libScePad*.dll or hid.dll imported, also delay-load, or libScePad loaded)
only counts for a PlayStation controller: other controllers are still translated there. hid.dll imported alone
counts for 30 s after the controller appears, and after that only once the game has opened a PlayStation HID device
(Monster Hunter Wilds imports it and never does). For any controller: an SDL of its own, RegisterRawInputDevices
for joysticks/gamepads, the game reading a DirectInput game controller (GetDeviceState/GetDeviceData on a
joystick/gamepad device; creating DirectInput or its devices doesn’t count: RE Engine games do that only to identify
controllers), or CreateFileW on the controller’s HID device (only without a Sony library, whose enumeration opens
every HID device). When the controller appears or goes, it
posts WM_DEVICECHANGE to the game’s UnrealWindows, because Unreal only checks empty XInput slots after that
message. With XInput=2 the game’s CreateFileW on PlayStation/Nintendo HID devices (and the selected
controller’s) fails with access denied, also inside a separate libScePad.dll (whose import table is patched for
that hook only), and its Raw Input registrations for joysticks/gamepads are dropped: Sony’s pad library and
direct HID code then see no controller, as when another program holds it exclusively. Not available on
protected exes (inline-hook mode).IsXInputDevice
sample: Battlefield 4, 007 First Light) would never poll the translated controller: once the game creates a WMI
locator, Gyro4All hooks WMI’s in-process property reader (IWbemClassObject::Get) and shows the DeviceID of every HID game
controller (joystick, gamepad, multi-axis) as an XInput one (HID\VID_xxxx&PID_xxxx&IG_00\...), so the game’s own
check takes it as an Xbox controller, whatever the engine. PlayStation controllers are left out when the game reads
them itself (auto mode). A controller listed so reads as connected to XInputGetCapabilities in the slot it will
get until it is shown (some games pick the slot once).NativeFlickStick=1, nativepad.cpp): Sony’s pad
library (as libScePad.dll or linked into the exe) opens the controller’s HID device with CreateFileW and reads
input reports with ReadFile / GetOverlappedResult(Ex). Gyro4All follows the Sony handles the game opens for
reading (CloseHandle ends that) and, when a read completes, notes the right stick in every report it returned
(one read can hold several, of the device’s InputReportByteLength): report 0x01 (USB, bytes
3-4), 0x31 (DualSense Bluetooth, bytes 4-5) or 0x11 (DualShock 4 Bluetooth, bytes 5-6); Bluetooth reports
must carry the expected CRC32 (0xA1 + report). As soon as the game reads the selected controller through one of these
layouts, Gyro4All declares native stick suppression to GyroLib (so its flick stick settings show without touching the
stick); while GyroLib then asks for it, the stick bytes in the game’s copy are set to 128 (and the CRC recomputed).
Whenever the stick is held away from the centre, the game’s raw stick bytes are still compared with SDL’s: a clear
mismatch withdraws the suppression for that controller. NativeFlickStick applies when the INI is saved. The controller and GyroLib’s own SDL reading are untouched.nativepad.cpp), for games whose Sony library predates the DualSense. Detection: the
game’s Sony library opens every controller it finds; one it supports stays open and is read at once, one it doesn’t
is closed unread. A DualSense opened, closed unread and not open 5 s later (with a Sony library among the game’s
imports) makes Gyro4All write [Gyro4All] DualSenseAsDualShock4=1 into the game’s profile and translate the DualSense to
XInput for that session: the library only looks for controllers when the game starts (not on WM_DEVICECHANGE, tested
in Mortal Shell), so the new identity can only work from the next start. It also writes DualSenseAsDualShock4Learned=1,
and nothing when the profile already has a DualSenseAsDualShock4 value. If on that next start the game opens the
DualSense shown as a DualShock 4 and closes it unread too (5 s, none open), the learned identity is taken back: the
DualSense is translated to XInput at once, whatever else the game reads controllers with (Resident Evil 7 also creates
DirectInput), and the profile gets DualSenseAsDualShock4=0 (the Learned key removed). A value the user or a
shipped profile set is never changed. A profile can also ship the key. With it,
on the game’s own handles to a DualSense: on the game’s own handles to a DualSense, HidD_GetAttributes reports a USB DualShock 4 (054C:09CC,
version 0x0100), HidP_GetCaps / HidP_GetValueCaps its report sizes and feature reports, and HidD_GetFeature
answers the DualShock 4’s calibration (from the DualSense’s), address and firmware reports; the game’s feature
writes are not passed on. Input reports are rewritten as DualShock 4 USB reports (over Bluetooth Gyro4All reads the
longer reports itself and hands the game converted ones), and the game’s DualShock 4 output report (rumble, light
bar) is sent as the DualSense’s (with its CRC over Bluetooth).src/engines/reEngine/): the main thread only waits for window messages there, so there is no
PeekMessageW frame. The module finds the type database (TDB) in the exe, via.Application through its runtime
type, and that object’s table of per-frame steps (module entries); it swaps one entry’s function pointer (a data
write, no code patched) so the gyro runs just before that step, on the game’s update thread. FrameEntry= in
Gyro4All.ini picks the step (default LateUpdateBehavior, after the game has applied the stick). The scene:
app.ObjectManager (found among the exe’s static singleton slots) -> PlayerObj -> its app.PlayerCamera
component; the gyro rotates the free-look controller’s <rotation> quaternion (yaw about the world’s up axis,
pitch about the camera’s own horizontal axis, within the controller’s XRotateLowerLimit/XRotateUpperLimit), which
the game turns into the camera every frame. Field offsets come from the TDB by name. Layouts follow
REFramework’s SDK (MIT). Games with Capcom’s anti-tamper (Resident Evil
Requiem, Pragmata) also need REFramework installed, to switch the anti-tamper off; RE7 doesn’t.
tools/reEngine/tdbdump.py lists a game’s types and field offsets from its exe, offline; tools/reEngine/README.md
explains how to find a new game’s camera.src/engines/swarm/, Saber Interactive: Warhammer 40,000: Space Marine 2): the game window is pumped
by a thread of its own (the startup thread only pumps the splash screen), which becomes the game thread. The view’s
angles are the third-person camera controller’s float pitch, yaw in degrees; the module finds the controller’s
vtable through the code of its constructor and the controller itself with a heap scan on a thread of its own (again
after loading screens). The pitch stops at the on-foot camera’s limits (70 up, 75 down), or wherever the game’s own
stick took it further (aiming). The camera rig, render camera and view matrices are copies rebuilt from those
angles every frame. The game opens the DualSense through both CreateFileW and CreateFileA.Present, ResizeBuffers) and subclasses
the game window to forward input. These hooks are only installed if the panel is enabled in
gyrolib.ini.Gyro4All\gyro4all.dll. winmm.dll loads it once such a game has made its swapchain (D3D10/
D3D11) or device (D3D9); in DX12 games it loads it for the Gyro4All settings window, drawn by its own DX12 renderer
after GyroLib’s overlay, on the same queue. The panel’s frame is built on the game thread after gl_update
(GyroLib’s context has one owner thread) and drawn just before the game’s Present: D3D11 inside a device context
state of its own (the game’s whole pipeline state is swapped out and back), D3D10 with a state block, D3D9 with a state
block plus its render targets. On an HDR swapchain (scRGB or HDR10, D3D11) the panel is composed in linear light with
the UI white at 203 nits, as GyroLib’s DX12 panel does; the DX12 renderer composes the same way. Under wrappers that hand the game proxy objects (ReShade as
dxgi.dll, d3d11.dll or d3d9.dll) the panel draws on the real swapchain or device inside them, after their effects
and overlay (overlay: swapchain ... not used: the panel draws on the real swapchain inside it). Its own ImGui exports
nothing, writes no imgui.ini and never changes the mouse cursor. It navigates with GyroLib’s selected controller,
like the DX12 panel; Escape closes it. Set ui.menu_key= (empty) and ui.gamepad_menu_shortcut=0 to run with no graphics hooks
at all.gyrolib.ini) appears when the selected controller is under Steam Input. In DX12 games
GyroLib applies it itself. In the other games Gyro4All applies it, because GyroLib’s own bridge needs window messages
that DirectInput games never get. Each active view uses its own saved choice: entering ADS, ALT_ADS, OTHER or an engine
view applies that view’s Pass through / Block / Convert movement setting, and returning to Exploration restores its
choice. Merely selecting another tab in F10 edits that view but doesn’t activate it. A low-level mouse hook drops
Steam’s injected motion before it moves the cursor.
Hooks on Raw Input reads (win32u’s NtUserGetRawInputData/NtUserGetRawInputBuffer, every caller, DirectInput’s
own reads included) empty Steam’s packets, the ones from no device. Physical mice, buttons and the wheel pass. Block
and Convert act everywhere in the game while it is in front, menus and the open panel included. Convert turns the
emptied packets into camera turn at GyroLib’s 0.05 degrees per count (Steam’s own mouse sensitivity sets how many
counts it sends), only while the camera may turn; GyroLib’s gyro sensitivity and smoothing don’t apply to it, nor its
FOV compensation. Convert needs a game that reads Raw Input (directly or through DirectInput): in one that only
reads the cursor it blocks but turns nothing. Unlike GyroLib, any injected mouse motion counts as Steam’s while
Steam Input has the controller (another tool’s mouse emulation, e.g. DS4Windows or AutoHotkey, is blocked too). A
game that reads Steam’s gyro through its own Steam Input actions (Days Gone) gets no mouse to block: turn the gyro
off in its Steam layout instead.dxgi.dll factory imports (protected exes: the real
System32 factory). Some protectors resolve the graphics imports themselves, so those imports are never called; for
games that ship NVIDIA Streamline (DLSS), Gyro4All also hooks Streamline’s proxy factory (sl.interposer.dll: its
CreateDXGIFactory* exports and slUpgradeInterface) as soon as it loads, and uses it when the game makes its
factory there without calling its own import (overlay: the game makes its DXGI factory through Streamline ...).
The panel then sits above frame generation, as with the game’s own factory; games whose import is called first stay
on it. When Streamline’s queue and swapchain report different devices (e.g. ReShade under Streamline), the panel
renders with the queue under Streamline’s proxy (overlay: queue and swapchain devices differ: ...), and it never
keeps the game’s swapchain alive: when the game releases it (e.g. toggling frame generation), the panel lets go at
the same moment (overlay: the game released its swapchain: released swapchain ...) and attaches to the new one.
Verified in RE Requiem with DLSS frame generation on and off and toggled both ways, with ReShade and REFramework.The generic path needs no profile. When a game’s camera ignores ControlRotation, add
Gyro4All\profiles\<exe name without .exe>.ini. Profiles shipped in this repo live in profiles/.
Profiles and settings files written for GyroUE (the former name) still work: keys in their [GyroUE] section are
still read, and the same key in a [Gyro4All] section wins.
[Gyro4All]
; Extra views, in priority order (the default view always exists).
Views=InCar
; Diagnostics: F7 = snapshot, F8 = log what changed (see below).
Probe=0
; Optional: game states that count as a pause (the gyro stops, as the stick does), for scripted scenes. A comma-
; separated list; the gyro pauses while any of them holds. Each is Root.Sub...Property (same path syntax as Object=
; below), alone (true / non-zero) or with == != < <= > >= and a number, true or false. The property can be a bool,
; a number, a byte or enum (its value as a number) or an object (1 when set). Read again when the file changes.
; e.g. Dead Island 2, whose scripted scenes fly the character (MOVE_Flying = 5):
;PauseConditions=Pawn.CharacterMovement.MovementMode==5, PC.bCinematicMode
[View.Default]
Label=Exploration
; Optional: another object and rotation for the default view.
; Object=Root.Sub... Root = PC | Pawn | Camera | ViewTarget; each Sub is an object property name,
; the name of a subobject (e.g. a component) of the previous object, or @Class:
; its first subobject of that class (for names that change every session)
; Property=Name a reflected FRotator property on that object; Property=RotationInput (PC): the stick's
; look input, see "The stick's look input (Property=RotationInput)"
; Offsets=0x2A0,0x420 raw FRotator offsets instead (non-reflected C++ state); all get the delta
; RotatorSize=24 24 = double (UE5), 12 = float (UE4)
; Matrix=1 with Offsets=: each offset is a float rotation matrix (FMatrix rows forward, right,
; up) instead of an FRotator, for cameras that keep the view that way (Days Gone)
; Direction=1 with Offsets=: each offset is a float forward vector (x, y, z) instead of an FRotator,
; for cameras that aim along a stored direction (Stellar Blade's aim); no roll
; ScreenPoint=80,46 with Offsets=: each offset is a float screen point (x, y, 0..1 from the top left) moved
; as if the screen spanned 80 by 46 degrees (one value: both), kept on screen; for a
; crosshair on a fixed camera (Stellar Blade's cover minigame). No camera follow check
; OutputMatrix=0x80 with Matrix=1: the matrix the game shows, built from the one written; a written pitch
; past it (the game's pitch limit) is brought back first (no dead zone past the limit)
; ControlYaw=1 after each gyro turn, PC.ControlRotation's yaw is set to this view's, for cameras
; turned through another rotation while the character moves along ControlRotation
; ActiveWhen=Pawn.@SBCameraComponent.bCurrentCameraTPSMode
; (views other than the default) the view is used while this holds, from that frame on,
; ahead of ViewTargetClass and Match=Camera views; same syntax as PauseConditions=
; (a property alone, or with == != < <= > >= and a number)
; ActiveList=0x35D0 with Object=...@ClassA|ClassB: the object before @ keeps a list (TArray) of objects there,
; newest first; the view is active while its first entry is of those classes, and turns it
; (one camera object per mode). ActiveListSkip=ClassC|ClassD: entries to look past
; PitchObject=Pawn.Camera this view turns yaw only; its pitch goes into this rotation instead, for a camera
; PitchProperty=RelativeRotation that keeps yaw and pitch in two objects (AMID EVIL: ControlRotation turns the
; character, the camera component the pitch). Same syntax as Object= / Property=; raw
; state: PitchOffsets=0x2A0 and PitchRotatorSize=12 instead of PitchProperty. Without
; PitchObject the pitch rotation is on this view's own object. The probe writes it when
; the camera's yaw followed one rotation and its pitch another
; PitchView=1 older form: this view turns yaw only; its pitch goes into view 1's rotation (the probe
; writes it for a yaw-only camera when it found no rotation for the pitch)
; WorldRotation=1 with Property=RelativeRotation of a scene component that uses absolute rotation: also
; writes the component's world rotation (see "Components with absolute rotation")
; Function=Name turn by calling this reflected function of the object (its Rotator parameter gets the turn,
; bTeleport is set) instead of writing; Property= is only read. For physics bodies, e.g.
; Function=K2_AddLocalRotation (see "Turning through the engine")
; RecenterPitch=0 level pitch for the recenter button, in this view's rotator (degrees, default 0);
; set it when "level" isn't 0 in a custom camera
; Recenter=0 hide the recenter button in this view (it doesn't level this camera properly)
[View.InCar]
Id=2
Label=In car
; Active while the camera's view target is (or derives from) this class.
ViewTargetClass=BP_PlayerCarNew_C
; Rotator property on the view target (or use Object/Offsets as above).
Property=CameraControllerRotation_Target
; Settings inherit from view 1 until changed for this view in the panel.
Parent=1
; Scalar writes on the view object whenever the gyro moves it (e.g. to cancel auto-recentering).
; Name:value is on the view object; Root.Sub.Name:value on another object (same path syntax as Object=),
; e.g. Life is Strange: OnGyro=PC.@TP_Walk_Manual_C.SmoothedAutoManualRatio:1
OnGyro=IsAutoControlling:0,Camera_AutoControlAmount_target:0
; Diagnostics: log properties on change / dump all properties once.
;Watch=IsAutoControlling
;Dump=1
[View.Auto3]
Id=3
Label=SBZClampCameraRotationModifier
; Active while the camera follows this rotation, instead of the view for the same view target (see below).
; Optional ViewTargetClass= limits it to that view target; without it, it applies to every one.
Match=Camera
Parent=1
Object=Camera.@SBZClampCameraRotationModifier
Offsets=0x68
RotatorSize=24
In Unreal games the profile’s views and PauseConditions= are read again whenever the file changes, so edits (and
views the probe adds) apply without a restart. Its other [Gyro4All] settings still apply from the next start.
Use these when the game rebuilds Camera.main’s Transform from its own aiming state, or Camera.main isn’t the camera
you see. You usually don’t write one by hand: the Unity probe finds the values, tests them live and writes the
section (below).
[Unity]
; Two floats. Risk of Rain 2's kind, one value type holding both, is PitchYawPath= instead (below).
ObjectType=Game.PlayerLook
PitchPath=_pitch
YawPath=_state.yaw
| Key | Meaning |
|---|---|
ObjectType |
The class (Namespace.Class) of the active object the paths start from. |
YawObjectType |
YawPath’s class, when yaw lives in another object than pitch. |
ObjectName, YawObjectName |
Optional: the name of the GameObject the ObjectType (YawObjectType) instance sits on, when the game has several instances of the class (Neon White: one MouseLook per axis, so YawObjectType repeats the class). Default: the first instance whose paths resolve. |
PitchPath, YawPath |
Paths to two float fields. |
PitchYawPath |
Instead of those: a path to a value type with float pitch and yaw fields (_cameraMode.DebugGetInstanceData(@).pitchYaw). |
PitchPerDegree, YawPerDegree |
The value’s units for one degree up and right. Default -1 and 1: degrees, with pitch counting down. Radians are 0.0174533; a negative number runs the other way. |
CameraField |
Optional path to the Camera (its FOV, and whether it follows the gyro). Default Camera.main. |
PitchLimit |
Optional limit up and down, in degrees. Without it the generic view learns the game’s clamp from how the game pulls the camera back, and a profile’s value stops at 89. |
YawParent |
Instead of YawPath: yaw turns the Transform this many levels above the camera (the player’s body, or a head or pivot between the camera and the body). Alone, without ObjectType, pitch stays on the camera’s own Transform. |
PitchObject, YawObject |
Instead of PitchPath / YawPath: a path to a component or GameObject whose Transform holds that angle, for games that keep their look state in a Transform they read back every frame, not in a float, and whose camera doesn’t hang from it (it follows through Cinemachine). The gyro turns the Transform’s world yaw, or its pitch about its own right axis. YawObject starts from YawObjectType’s object when that is set. MOUSE: P.I. For Hire: PitchObject=cameraRigController, YawObject=characterController. |
Look |
Optional comma-separated conditions (a part Name() calls a method with no arguments, e.g. player.GetPDA().isInUse) on ObjectType’s object that must all be true for the gyro to turn (! in front negates one), usually the game’s own “can look” state: Look=gameObject.activeInHierarchy, inputs._controls.m_Player_Look.enabled (off in menus, dialogue and cutscenes). The log says unity: gameplay view off: <condition> is false. |
ZoomReference |
Optional unzoomed FOV for zoom compensation: a path to the game’s own float (cameraFovController._baseVerticalFOV) or a number. Default: ZoomReferenceFOV= (horizontal) from [Gyro4All]. |
ZoomReferenceAxis |
Vertical or Horizontal: which axis ZoomReference is in (Camera.fieldOfView is always vertical; a game may keep its own FOV horizontal whatever the field’s name, as MOUSE’s _baseVerticalFOV does: 105 horizontal, 72.5 vertical at 16:9). Empty: told from the camera while you play unzoomed (about 30 frames where the camera’s FOV equals it in one axis; no zoom compensation until then). The log says unity: ZoomReference 105.0 is horizontal ..., or ... check the profile when this key contradicts what the camera shows. |
PitchTransform |
1: the gyro turns the camera’s own Transform along with PitchPath. For games that copy their pitch float to the camera only when you look around yourself (The Planet Crafter): without it the gyro’s pitch shows only after the next stick or mouse turn, and with PitchPath missing the next stick turn puts the camera back where the stick left it. |
YawFromCamera |
1: YawPath is the view’s yaw relative to a body the game turns toward it by itself, so the value shrinks back while the body catches up (Firewatch’s camera mode offset). The camera’s own world yaw then tells whether the game keeps the gyro’s turns, so the shrinking value doesn’t count as an undone write. |
Source |
auto: found with no player input. The first real stick or mouse turn confirms it, or takes it out of the profile and looks again. |
Rejected |
What the player’s turns showed isn’t the look state (Class path;parent N), not to be found again. |
A path walks instance fields, through objects and value types, and base classes’ fields count. A method(@) part calls a
one-argument method on the object reached so far, passing the starting object. A name[Class] part goes through an array,
List<>, LinkedList<> or Dictionary<,> field to the first object of that class in it (modes[LookState].pitch). The value’s type is checked: a path
ending at anything else is refused and logged. A name with no field of that name is read through its property’s getter
(gameObject, activeInHierarchy, an InputAction’s enabled); fields always come first. The section is read again
whenever the file changes.
Normally you do nothing. Unity has no common look state like Unreal’s ControlRotation, so with AutoProbe=1 a game with
no [Unity] section gets its own found the first time it has a perspective camera in gameplay with the mouse captured. Splash,
loading and title screens often capture the mouse too, so a camera counts as gameplay’s only once you have turned it with the
stick or mouse, or after 45 s on it (probe: ...: gameplay, the camera may be searched by itself); until then the gyro runs as
usual, and the 2 minutes of play the searches run in count from there. A UI
element with the pad’s or keyboard’s focus counts as a menu: no search and no gyro there, for up to a minute per camera. The
search waits for a camera nobody is turning, since a cutscene pans (20 s at most). A menu stops a search, which starts over 3 s
after the menu closes. A search that finds nothing costs little and comes back: on each new camera, once more 30 s later or after
a menu, and when you turn the camera yourself. The gyro waits until the camera has had its search, usually a few seconds and 15 s
at most for the search itself. While any search runs, a notice on screen says what it is doing and whether to keep your
hands off the controller (it refreshes every second; Notices=0 turns it off):
Source=auto.CharacterController or Rigidbody is tested instead
(YawParent=). With no pitch float either, pitch stays on the camera. Then, while you play, the floats of the scripts on
the camera and its body are compared with the camera’s pitch after your own stick or mouse turns. One that always matches
(in degrees or radians, either way) is the game’s pitch: it goes into the profile with PitchTransform=1, so a game that
copies it to the camera only when you look around (The Planet Crafter) no longer undoes the gyro’s pitch on your next
stick turn. It needs a few turns up and down over at least 10 degrees, and stops for that camera once found or once no
float can match.offset.y): its other components get the
live test as the yaw first, judged by the camera alone. A value the game takes back while the camera keeps the turn (a
yaw relative to a body that catches up with it, as in Firewatch) passes, and goes into the profile with YawFromCamera=1.YawParent=), then the Transforms
the game’s scripts hold in their fields (a camera rig, a head, a character controller; UI elements left out), likeliest
names first, get the same live test, turned the way a profile would (PitchObject=, YawObject=). A body the engine
took back (Rejected=parent N) is skipped, so the next search tries what hangs below it. With
Cinemachine, what its virtual cameras follow counts as the camera’s rig, so the scripts there are searched deeper too.ObjectType’s object, goes into the profile as
ZoomReference= with the axis it matched as ZoomReferenceAxis= (unzoomed FOV? lines in Gyro4All-probe.log). Don’t
aim down sights while the probe runs: a zoomed camera matches nothing.Camera.main’s rotation and watches your stick or mouse turns in the background
for up to 5 minutes per camera; the notice says how many turns it has.Writing Camera.main directly is only the last resort: it leaves the game’s own state behind, so the game’s stick or
mouse and the direction you walk in can stop matching the view.
To run it by hand, press Ctrl+F7 (ProbeKey) or set Probe=1 in Gyro4All.ini. It also starts when the game rewrites
the camera, and says so on screen. Play windowed or borderless: the on-screen messages don’t show in exclusive fullscreen.
hier and rot lines in Gyro4All-probe.log show how each ancestor and each script
Quaternion followed your turns (logged only, never written).[Unity] in the game’s profile and apply at once, and Probe= goes back to 0. A game
that already has a [Unity] section gets profiles\<exe>.suggested.ini instead.If no camera turns with the stick or mouse, the probe says so: that is a fixed scene camera. If cameras turn but no value
or Transform passes, the game turns the camera from native state, which profiles don’t cover yet.
F7 alone writes the scene’s cameras and look-named values to Gyro4All-probe.log, without changing anything. That log
also lists every candidate with its correlation and each live test’s result.
The core supports GyroLib’s gyro.zoom_compensation for every engine through the same contract: an engine view declares
support and reports the current and unzoomed reference vertical FOV, in degrees and with matching projections, before
each update. Missing or invalid values bypass compensation for that update. GyroLib scales only the gyro deltas, not flick
stick or the saved sensitivity; Gyro4All applies no second FOV scale. The setting (Adapt to Zoom) is Off by default;
the ADS, ALT_ADS and OTHER sensitivity profiles inherit it from the main tab.
Unreal views read the displayed PlayerCameraManager CameraCachePrivate.POV.FOV (CameraCache in older UE4) and
POV.AspectRatio, converting the horizontal FOV to vertical. Orthographic cameras and missing or invalid properties
bypass compensation.
Unreal Engine 3 views read the displayed Camera CameraCache.FOV (the TPOV struct’s FOV, the final POV) and convert
it from horizontal to vertical with the game window’s client aspect. Games without the reflected
Camera.CameraCache/TPOV.FOV properties get no compensation (the setting stays in the panel but never engages).
Glacier views (HITMAN 3) read the third-person camera controller’s FOV (a float it keeps at +0x200) and convert it from
horizontal to vertical with the game window’s client aspect. With no ZoomReferenceFOV=, the reference is the widest
FOV seen since the controller was found (aiming only narrows the FOV in HITMAN 3). 007 First Light’s orbit and
transition cameras have no known FOV source, so its view declares no zoom support.
The unzoomed reference is the engine’s own default (PlayerCameraManager.DefaultFOV, PlayerController.DefaultFOV)
unless ZoomReferenceFOV= says otherwise (horizontal degrees, like the engine reports). The most specific place wins:
a view section ([View.*]) for Unreal, [Unreal3] for Unreal Engine 3, then the generic [Gyro4All] ZoomReferenceFOV=
in the profile or Gyro4All.ini — so one value can serve every game of the folder. 0 (or no value) uses the engine’s
own default. Changes apply when the file is saved (the settings panel saves as you edit). Mass Effect 3 LE’s shipped
profile sets [Unreal3] ZoomReferenceFOV=100: its PlayerController.DefaultFOV (85) is not the rendered 100.
ZoomStrength=<percent> (default 100, 0..200; Gyro4All.ini or the profile, applies on save) tunes how much the field of
view changes the speed, for every source: GyroLib’s scale is raised to strength/100. At 100 a zoom moves the image on
screen as fast as unzoomed play; at 75 each zoom feels faster than that by its magnification^(1 - 0.75) (a 4x scope
1.4x, a 13.6x one 1.9x); 0 turns the field of view’s effect off. GyroLib’s formula is fixed, so Gyro4All reports the FOV
that makes GyroLib give the scaled value. (Idea and Mass Effect 3 numbers from PR #13 by MERLev.)
Where the engine reports no FOV, the player describes the game’s zoom instead (settings panel, Zoom compensation, or
Gyro4All.ini / the profile; all apply on save):
ZoomAimButton= and ZoomAimMode=Hold|Toggle: the aim. Held (or toggled on) it selects the first zoom level.ZoomLevelsFOV=: each level’s field of view, horizontal degrees, comma-separated, the aim first (55,30,15). Each is
compared with ZoomReferenceFOV= (90 when unset), so they are the game’s own FOVs if known, else values tuned by feel.ZoomCycleButton= (optional, e.g. R3): while aiming, each press goes to the next level, back to the first after the
last. A weapon that only aims never presses it and stays at the first level.ZoomRememberLevel=1: the next aim starts at the level used last (games that keep each weapon’s zoom) instead of the
first. ZoomResetButtons= (comma-separated, usually the weapon switch, e.g. Y or Y,Left,Right): a press brings the
zoom back to the first level, now if aiming and for the next aim otherwise.ZoomRampMs= (default 150): the gyro eases to each level’s speed over that time, like the game’s zoom animation.ZoomSource=Auto|Manual: Auto (default) uses the game’s FOV in views where the engine reports one and the manual levels
elsewhere; Manual always uses the levels (a game whose reported FOV doesn’t follow its scopes).Buttons are named as for the sensitivity profiles (LT, R3, Y… or L2, R3, Triangle…). Manual zoom applies in the
default view (and its sensitivity profiles), during gameplay only: a pause, the cursor, the panel or lost focus end the
aim like a released button, and a toggle has to be pressed again. Gyro4All can’t see the game’s weapon or its own zoom
state: a weapon with fewer levels than the list, or a game that changes the level by itself, gets out of step until the
aim button is released or a reset button is pressed. With manual zoom, the ADS sensitivity profiles are no longer needed
to slow the gyro while aiming; they remain for other settings while aiming (curves, smoothing, acceleration). A profile
on the same button as ZoomAimButton works together with it (the profile’s settings, the zoom’s FOV).
Property=RotationInput)Some games rebuild ControlRotation from other state every frame, so a turn written into it is lost. Dead Island 2
takes the view’s yaw from the character’s capsule, and the right stick turns the whole character instead. For those,
Property=RotationInput (on the PlayerController, the default view’s object) sends the gyro down the right stick’s own
path. The engine zeroes RotationInput at the start of each player tick, adds the stick to it, and turns the camera
from it in the controller’s UpdateRotation. So Gyro4All doesn’t write it from its frame hook: it hooks
UpdateRotation and adds the gyro there, just before the game reads it. The game’s limits, its turn of the character
and whatever follows from it then apply to the gyro as they do to the stick.
UpdateRotation is found by its shape, not by address. Gyro4All goes through the controller class’s virtual functions
and picks the one that reads RotationInput before any call, jump or return, which is the engine’s first statement
there. RotationInput isn’t reflected in UE4: its offset is the one just before the reflected InputYawScale, which
follows it in APlayerController (InputYawScale_DEPRECATED in UE5).
The log says which one (update rotation: ... UpdateRotation is vtable[N] at <module>+0x...: hooked).
If none matches, or more than one does, the view isn’t turned and the log says so.
[View.Default]
Label=Exploration
Property=RotationInput
Function=)Some views can’t be turned by writing memory at all. In EVERSPACE 2 the view is the ship’s orientation, and the ship is a
physics body: the physics engine puts back its own rotation every frame, so a write to the ship’s root (even with
WorldRotation=1) is lost, and the ship’s movement component only takes a steering input with the ship’s own inertia
(like the stick). For those, Function= names a reflected function of the view object that Gyro4All calls instead of
writing: its first Rotator parameter gets the turn, a bool parameter named bTeleport is set, every other parameter
is zero. SceneComponent’s K2_AddLocalRotation with teleport moves the physics body too, in the object’s own axes (a
ship’s yaw and pitch). Property= is still needed: it is only read, for the status line and the follow check.
[View.Default]
Label=Ship
Object=Pawn.CollisionRoot0
Property=RelativeRotation
Function=K2_AddLocalRotation
Recenter=0
The call goes through the engine’s UObject::ProcessEvent, found by its shape in the object’s virtual functions (the one
that tests the function’s FUNC_Native and FUNC_HasOutParms flags), on the game thread. The log says which entry
(ue: ProcessEvent is vtable[N] at <module>+0x...) and what the function takes (ue: <Class>.<Function>: found
(parameters ..., rotator +0x..., bTeleport +0x...)). If either isn’t found, the view isn’t turned and the log says
why (profile: view N <Function> not called on <object>: ...). A call that faults turns calls off for the session
instead of crashing the game. Local turns don’t add up like world yaw and pitch, so these views have no stick
fallback, and a ship’s roll makes the level pitch meaningless: use Recenter=0.
Match=Camera)Unreal games only. Some games turn the camera through different rotations while the view target stays the same. PAYDAY 3 uses
ControlRotation in normal play, but during some actions a camera modifier (SBZClampCameraRotationModifier) clamps
the view and rewrites ControlRotation from its own rotation. ViewTargetClass can’t tell these apart, so such a view
uses Match=Camera instead:
ViewTargetClass view for the view target, or the default view) and the Match=Camera views
for that view target form a group. The gyro turns the group’s current view.camera: '<view>' is rewritten by the game, trying '<next>';... is ignored by the camera, trying ....
The one the camera follows stays: camera: the camera follows view '<view>' now (Match=Camera).(N degrees carried over), at most 45 of yaw
and 10 of pitch), so a camera change delays the turn a moment instead of eating it.camera: no view of this camera follows the gyro.Match=Camera view has its own tab in the settings panel, starting with the settings of view 1. ADS, ALT_ADS
and OTHER also apply to the Match=Camera views of the default view.Match=Camera view the
usual ActiveWhen= instead of relying on the checks above. The view is then used exactly while its condition holds,
from that frame on, gyro or not, so no turn is lost on either side of the switch; while the condition is false the
view is left out of the group (the checks above never pick it). PAYDAY 3:
ActiveWhen=Camera.@SBZClampCameraRotationModifier.CurrentIndex>=0 (-1 outside an action).Watch= and Dump=1 on a Match=Camera view also run while it isn’t the active view, so a
property can be seen changing as the camera changes (watch: <view>.<property> = <value>).[Unreal3])UE3 games need no view sections: the gyro turns the player controller’s Rotation. By default the gyro stays off while
the world is a menu level (WorldInfo.bIsMenuLevel). Some games keep that flag on during play (Dishonored): their
profile turns the check off. Zoom compensation (gyro.zoom_compensation) reports the displayed
Camera.CameraCache.FOV; set ZoomReferenceFOV= here when the unzoomed horizontal FOV isn’t
PlayerController.DefaultFOV (0 = read DefaultFOV), or once in [Gyro4All] for any engine:
[Unreal3]
MenuLevel=0
ZoomReferenceFOV=85
[!IMPORTANT] Gyro4All guides you with on-screen messages but the game can’t be using exclusive fullscreen or you won’t see them.
Most UE games turn the camera from PlayerController.ControlRotation, and Gyro4All works with no profile.
Some games keep their own look rotation somewhere else: in a vehicle actor, in a camera component, or in
C++ memory that Unreal’s reflection doesn’t describe. The probe finds that rotation for you. It records
the camera-related state, you turn the camera with the right stick, and it logs what changed. The result
goes into the game’s profile.
The steps below use the real Cronos: The New Dawn session as the example.
Install Gyro4All, play for a few seconds moving the controller to check if it moves the camera, quit, and open Gyro4All\Gyro4All.log. Gyro4All compares
how much it turned the view with how much the camera actually moved, and says it in one line:
camera: confirmed, the camera follows the gyro (ControlRotation, view 'Camera')
camera: the gyro turned ControlRotation (view 'Camera') by 412 degrees but the camera moved only 0: the game ignores it.
To find the camera's real rotation, set Probe=1 in ...Gyro4All\Gyro4All.ini, restart and turn the camera
with the right stick.
The check only runs on the player’s own camera (view target = pawn), so scripted or fixed cameras don’t trigger it.
The first verdict needs three 2 s windows with at least 10° of gyro each and no stick or mouse. After it, the check
keeps watching and logs camera: stopped following the gyro after three such windows in a row (about 6 s of gyro motion),
follows the gyro again when it does; AutoProbe starts from the first one (see
Learning a camera during play). The warning also appears on screen, in a small box at the top of the game
window, with what to do next; so do the probe’s progress messages below (capture ready, capture done, turn
discarded, suggested profile written). The box is drawn by Windows, not by the game, so it works with DX11 and DX12;
it doesn’t show in exclusive fullscreen. Notices=0 in Gyro4All\Gyro4All.ini keeps the messages in the log only.
The status: lines written every 30 seconds give more detail:
status: view=Camera pc=SHPlayerControllerPlay_BP_C pawn=CronosCharacterPlay_BP_C target=CronosCharacterPlay_BP_C
paused=0 cursor=0 | gyro enabled=1 motion=1 ... | applied yaw=-220.1 pitch=14.5
| What you see | Meaning |
|---|---|
view=Camera, applied yaw/pitch changing, camera moves |
The generic path works. No profile needed. |
view=Camera, applied yaw/pitch changing, camera doesn’t move |
Gyro4All writes ControlRotation but the game ignores it. Use the probe. |
view=none during gameplay |
No pawn is possessed, or it is a placeholder DefaultPawn (normal in main menus). |
motion=0 |
Controller problem, not a camera problem. See Problems?. |
Open Gyro4All\Gyro4All.ini (Gyro4All creates it with the defaults on the first run; releases don’t ship it, so updates
keep your values) and set:
[Gyro4All]
Probe=1
Gyro4All.ini holds the settings for every game in that folder. A game’s profile
(Gyro4All\profiles\<game exe>.ini) can override any of them in its own [Gyro4All] section.
Gyro4All.log now says probe: results in ...Gyro4All-probe.log and profile: probe enabled (automatic capture on stick or mouse turns, F7/F8 manual). The
probe writes its results to that separate file, Gyro4All\Gyro4All-probe.log, which starts with a short reminder of
these steps; Gyro4All.log only gets one line per snapshot and diff. F7 and F8 are polled only while
the game window has focus. If the game uses those keys for something, press them where that doesn’t matter
(e.g. standing still).
Automatic (recommended). With Probe=1 Gyro4All finds the camera by itself and tells you on screen what to do.
The gyro output is paused while it runs, so the controller can stay in your hands.
Gyro4All.log: probe: automatic capture ready ...).
Turn the camera with the right stick, more than 30° sideways (and a bit up or down), then stop. Repeat until
the notice says 3 captures are done. Camera turns made without the right stick (cutscenes, scripted cameras) are
ignored. Every rotation that followed the camera in the captures becomes a candidate: one that now holds the
camera’s pitch and yaw, or one that changed by exactly the camera’s turn (a copy kept with an offset or a small
lag; Hogwarts Legacy keeps its look rotation 3° above the final pitch).it also turns the character in the log):
that one is the look input that both the camera and the character read. A rotation that turns only the camera can
be a camera stage the game rebuilds from it in other states (Silent Hill 2: the spring arm turns the camera
standing still, but the game rewrites it while walking, and while aiming it moves only the crosshair).
Gyro4All\profiles\<game exe>.ini. Restart the game to use it.<game exe>.suggested.ini next to
it. To use it, rename it to <game exe>.ini (replacing the old one) and restart.If nothing passes, Gyro4All asks for more captures (up to 8) and tests the new candidates. After that it writes only
an unverified guess to <game exe>.suggested.ini; an unverified guess never becomes the game’s profile.
Every test and its result is in Gyro4All-probe.log (probe test (round N): <rotation>: MOVES THE CAMERA /
overwritten (output) / kept, camera didn't move / …), and the profile file lists every other rotation with
what the live test said about it. For Hogwarts Legacy, for example, the probe should verify:
; VERIFIED LIVE: the probe wrote small turns into this rotation and the camera followed them, twice.
[View.Default]
Label=Exploration
Object=ViewTarget.BehaviorStack
Offsets=0x68,0x80
RotatorSize=12
With a verified result Gyro4All sets Probe=0 in Gyro4All\Gyro4All.ini by itself (and in the game’s profile, if that one
set Probe=1), and the notice asks you to restart the game: the probe keeps the gyro paused while it runs, so the
profile only takes effect on the next start. Even a verified profile was only tested
on the camera of the captures: a game with other cameras (vehicles, aiming) may need more views (see below).
Manual. F7 takes a snapshot, turn the camera with the right stick only (well over 30° to one side and
some degrees up or down, without walking), F8 logs the diff to Gyro4All-probe.log. Diffs with a large enough turn
feed an unverified guess in <game exe>.suggested.ini (no live test in manual mode). Pressing F7/F8 turns the
automatic probe off for the session.
Open Gyro4All\Gyro4All-probe.log (it is recreated every game session). The diff has three parts. Every line starts with the object’s profile path: the root (PC, Pawn,
Camera = PlayerCameraManager, or ViewTarget), followed by subobject names, then the object’s class in
parentheses. Abridged output from Cronos:
probe: roots pc=SHPlayerControllerPlay_BP_C_2147478565 pawn=CronosCharacterPlay_BP_C_2147478555 camera=SHPlayerCameraManagerPlay_2147478563 ...
probe: snapshot of 159 objects, 3179 values
rot Camera(SHPlayerCameraManagerPlay).CameraCachePrivate.POV.Rotation (P 0.00 Y 150.00 R -0.00) -> (P 55.15 Y -62.26 R -0.00)
rot Camera.TransformComponent0(SceneComponent).RelativeRotation (P 0.00 Y 150.00 R 0.00) -> (P 55.15 Y -62.26 R -0.00)
rot Pawn.Animation(SHCharacterPlayAnimComponent).LastAimRotation (P 0.00 Y 150.00 R -0.00) -> (P 55.15 Y -62.26 R -0.00)
probe: diff done (6 rotators, 18 numbers changed)
probe: raw diff, POV pitch 0.00 -> 55.15 (d 55.15), yaw 150.00 -> -62.26 (d 147.74)
raw Camera(SHPlayerCameraManagerPlay)+0x388 double 0.0000 -> 55.1492 = POV pitch
raw Camera(SHPlayerCameraManagerPlay)+0x390 double 150.0000 -> -62.2608 = POV yaw
raw Pawn.View(SHCharacterPlayViewComponent)+0x2A0 double 0.0000 -> 55.1492 = POV pitch
raw Pawn.View(SHCharacterPlayViewComponent)+0x2A8 double 150.0000 -> -62.2608 = POV yaw
raw Pawn.View(SHCharacterPlayViewComponent)+0x420 double 0.0000 -> 55.1492 = POV pitch
raw Pawn.View(SHCharacterPlayViewComponent)+0x428 double 150.0000 -> -62.2608 = POV yaw
raw Pawn.SpringArm(SHCharacterPlaySpringArmComponent)+0x2D8 double 0.0000 -> 55.1492 = POV pitch
probe: raw diff done (39 matches)
| Line | What it is |
|---|---|
rot <path>.<Property> (before) -> (after) |
A reflected FRotator that changed (nested structs are followed up to 3 levels, e.g. CameraCachePrivate.POV.Rotation). |
num <path>.<Property> before -> after |
A reflected float/double that changed. Useful for side effects (arm length, aim offsets, auto-recentering flags) and for OnGyro= / Watch=. |
raw <path>+0xOFFSET double/float before -> after = ... |
Non-reflected memory inside the object that now holds the camera’s yaw or pitch (in degrees or radians), or changed by the same amount as the camera. |
The camera’s final view (PlayerCameraManager...POV.Rotation) always changes, but it is an output: the
engine recomputes it every frame, so writing to it does nothing. You are looking for the input, the value
the stick writes and the camera reads. How to choose:
Camera(...), Camera.TransformComponent0, and component
world transforms (+0x100/+0x200 in scene components, the spring arm’s world rotation). These are copies of
the result.LastAimRotation, head rotation. They read the
camera; they don’t drive it.rot line) on the PlayerController, the pawn, a vehicle, or a
camera/”control”/”view” component, with a name like ...Rotation_Target, ControlRotation, LookRotation.+N (pitch), +N+8 (yaw), +N+16 (roll)
for doubles, or +N, +N+4, +N+8 for floats, in a component whose name suggests control or view. Here
that is Pawn.View(SHCharacterPlayViewComponent), a rotator at +0x2A0 and another at +0x420,
matching in both diffs.Turn the chosen line into profile keys:
| Probe line | Profile key |
|---|---|
Path before ( |
Object= (e.g. Pawn.View). Omit it for PC + ControlRotation. |
rot ... .PropertyName |
Property=PropertyName |
raw ...+0x2A0 |
Offsets=0x2A0 (the offset of the pitch value, i.e. the start of the rotator) |
rot ... .Struct.Rotation (nested in a struct) |
Property=Struct.Rotation (dotted path through struct properties, e.g. Jedi: Fallen Order’s Property=ModeOutputs.Rotation on Object=Camera) |
double / float |
RotatorSize=24 (UE5) / RotatorSize=12 (UE4) |
WorldRotation=1 in the suggestion |
keep it (a component with absolute rotation, Example 3) |
Example 1: non-reflected rotator in a pawn component (Cronos, UE5). The camera is always the character’s, so the default view is redirected:
; profiles/Cronos-Win64-Shipping.ini
[View.Default]
Label=Exploration
Object=Pawn.View
Offsets=0x2A0,0x420
RotatorSize=24
Example 2: reflected property on a vehicle (Pacific Drive, UE4). On foot the generic path works. In the car
the camera’s view target becomes the car actor, and the right stick writes its reflected rotator
CameraControllerRotation_Target (found with an earlier, script-based version of the same snapshot/diff method). An
extra view is added that is active only while the view target is the car:
; profiles/PenDriverPro-Win64-Shipping.ini
[Gyro4All]
Views=InCar
[View.Default]
Label=On foot
[View.InCar]
Id=2
Label=In car
ViewTargetClass=BP_PlayerCarNew_C
Property=CameraControllerRotation_Target
Parent=1
; From the num lines: the car re-centres its camera unless these are cleared while the player looks.
OnGyro=IsAutoControlling:0,Camera_AutoControlAmount_target:0,Camera_AutoControlAmount_current:0
Example 3: a camera component with absolute rotation (Severed Steel, UE4). The character turns its
FirstPersonCamera component directly from the component’s current world rotation (look input, then
SetWorldRotation), and copies the result to ControlRotation every frame, so ControlRotation is only an output.
A component with absolute rotation keeps its rotation twice: in RelativeRotation (reflected) and in its world
transform ComponentToWorld (not reflected), which is what the game reads back. Writing RelativeRotation alone
is undone the same frame. WorldRotation=1 writes both:
[View.Default]
Label=Exploration
Object=Pawn.FPCamera
Property=RelativeRotation
WorldRotation=1
Gyro4All finds ComponentToWorld by value the first time (its quaternion equals the RelativeRotation one; log:
ue: CameraComponent ComponentToWorld rotation at +0x1C0) and only writes while the two still agree. If they
don’t (the component isn’t absolute, or the game is between its writes), it skips that frame and logs
profile: view N WorldRotation not applied to ... with the reason. The probe suggests this form by itself for
attached components whose world rotation matches their RelativeRotation, a camera component first.
Use the default view with Object= when the game always uses that camera. Use an extra view with
ViewTargetClass= when a different camera takes over in some situations (vehicles, turrets). Extra views use
the view target as their object unless Object= is given. Each view gets its own tab in the settings panel.
status: view object View +0x2A0=(P -13.34 Y 167.93) +0x420=(P -13.34 Y 167.93). If it says (not found),
the Object= path is wrong.Probe=0 (or remove the line) once the profile works. The automatic probe does this by itself after a
verified result; with a hand-written profile it is up to you (while Probe=1, the gyro stays paused).Raw offsets depend on the exact game build and may break when the game is updated. Prefer a reflected property when one exists, and note the game version in the profile.
float, double and FRotator property of those objects, following nested
structs up to 3 levels (vectors, quaternions, transforms and colours are skipped). Rotators are logged when
any component changes by more than 0.5°, numbers when they change by more than 0.001 (at most 150 rotator and 250 number
lines per diff).The probe (Unreal games) can also start in the middle of a game, for the camera of that moment, without Probe=1 or
a restart:
ProbeKey=Ctrl+F7 in Gyro4All.ini; F1..F24 with optional Ctrl+, Shift+, Alt+; empty = none):
starts the probe where you are. The same key cancels any probe, also one started with Probe=1.AutoProbe=1, the default): when a camera that followed the gyro stops following it
(camera: stopped following the gyro), or the game’s camera ignores the gyro from the start, the probe starts by
itself and says so on screen. The gyro stays on meanwhile (the camera ignores it anyway); if the camera follows the
gyro again, or no turn with the stick or mouse is captured in 45 s (a cutscene), it gives up. At most 3 automatic
starts per session, 30 s apart.Then turn the camera with the right stick or the mouse (more than 30°), stop, 3 times, and leave the controller
alone during the short live test. The verified rotation is added to the game’s profile as a new
[View.Auto<id>] with Match=Camera (the file is created if needed; its other views and settings are kept, and a
rotation the profile already has isn’t added twice), and Gyro4All uses it at once. Log:
probe: camera learned: <rotation> added to ... as view <id> '<label>' (Match=Camera).
A probe started with Probe=1 in a game that already has a profile adds its camera the same way. Only in a game with
no profile does it still write the profile’s default view (a restart applies it).
Yaw and pitch in two objects. Some first-person games turn the character with ControlRotation (the yaw) and keep
the pitch in another object, e.g. the camera component’s RelativeRotation (AMID EVIL): the live test then says
yaw followed, pitch didn't move. The probe also records, in every capture that turned the camera 10° or more up or
down, the rotations whose pitch followed the camera’s while their yaw stayed put (pitch only ... in
Gyro4All-probe.log), and when the best rotation turns yaw only, it tests those with pitch turns alone
(probe test (pitch, round N): ...: MOVES THE CAMERA'S PITCH). The one that passes twice becomes the view’s
PitchObject= / PitchProperty= (or PitchOffsets=): written into the view that already turns the yaw (usually
[View.Default], probe: camera learned: yaw in ..., pitch in ...), else into the new Match=Camera view. So turn
the camera up or down too in at least one capture. A component’s rotation caches (a quaternion followed by the
rotator made from it, which reads back the transform) are ignored as outputs: writing them turns the view only until
the component moves.
Requirements:
SHA256SUMS and
extract it to third_party/GyroLib-1.4.0/sdk/GyroLib-1.4.0-sdk-windows-x64/. The pinned version is in
tools/gyrolib-sdk.sh.bash tools/build-gyro4all.sh # -> build/Gyro4All/Release/winmm.dll
bash tools/test-gyro4all.sh # build + unit tests (tests/profile_tests.cpp, no game needed)
bash tools/package-gyro4all.sh # build + build/release/Gyro4All-v<version>.zip (installable release)
Gyro4All links the static MSVC runtime. gyrolib.dll is delay-loaded by full path from the Gyro4All subfolder.
Repository layout:
| Path | Contents |
|---|---|
src/core/ |
The engine-neutral mod: proxy, hooks, GyroLib wiring and per-frame host logic (host.cpp), settings, XInput, panel (overlay.cpp), the Engine interface (engine.hpp) |
src/engines/unrealEngine/ |
The Unreal Engine module: UE reflection access (ue.cpp), scene and views (ue_engine.cpp), the profile’s views (ue_profile.cpp), camera probe (ue_probe.cpp) |
tests/ |
Unit tests of the parts that need no game (profile_tests.cpp) |
profiles/ |
Per-game profiles |
games/<Game>/ |
Per-game notes and scripts |
tools/ |
Build, deploy and benchmark scripts; gyroprobe sensor test tool; per-engine debug and camera-finding tools in tools/<engine>/ (each with a README) |
bench/ |
Performance measurements |
docs/ |
User documentation: this file, TROUBLESHOOTING.md, CREDITS.md |
MODLOG.md |
Development journal: findings, offsets, dead ends |
From a source checkout, tools/deploy-gyro4all.sh installs into a game (remove as a second argument
uninstalls; an existing gyrolib.ini is never overwritten):
bash tools/deploy-gyro4all.sh "D:/Games/MyGame/MyGame/Binaries/Win64"
Gyro4All’s per-frame work is roughly 50–100 µs on the game thread, plus 15–40 µs in the Present hook while the
panel is closed. Benchmarks in Returnal showed no measurable FPS or frametime change. See
bench/BENCHMARKS.md.