mirror of
https://github.com/DeeJanuz/frametop.git
synced 2026-10-06 10:00:11 +02:00
Structure only, no behaviour change. main()'s runtime locals become members of Pointer, declared in the same order with the same initial values and comments. The local types (Gaze, Src, Hold, DevicePress, KeyPress) move in with them, and Clock moves to file scope. Pointer::Init does the setup, in the original order: settings, VR_Init, the overlays, the laser width, the sockets, the controller buttons' manifest, vrhello, the overlay list. Members that were set during setup (sys, overlay, the three overlay handles, the sockets, systemPointer) are set there at the same point, and so are the timestamps that started at "now" (lastVisible, lastDebug, followAt, lastSlow). The lambdas and the main loop sit unchanged in Pointer::Run for now; the next commits split them up. applyConfig becomes Pointer::ApplyConfig, since Init and the "reload" command both call it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>