How bnuuysolutions/psvr2toolkit works
PlayStation VR2 Toolkit modifies the official PSVR2 PC driver and exposes its added capabilities through a C API and IPC. The principal flow is driver-side device hooks and feature handlers exchanging gaze, haptics, trigger and camera-related state through shared managers, then making capabilities available to applications. The README identifies eye tracking/calibration, camera feed, IPD assistance, play-area and tracking improvements, passthrough, night mode and refresh-rate switching as product capabilities. Unsampled feature implementations are represented only where the README supports them; source-index evidence supports the cited internal links.
Main entry points: custom_share_manager.cpp Custom share manager · psvr2tk_capi_loader.cpp C API loader · usb_thread_gaze.cpp Gaze capture · psvr2tk_capi.cpp C API
Components 18
Driver extensions
- Driver loader
projects/psvr2_openvr_driver_ex/hmd_driver_loader.h - Driver hooks
projects/psvr2_openvr_driver_ex/driver_hooks/caesar_manager_hooks.cpp - Gaze capture
projects/psvr2_openvr_driver_ex/usb_thread_gaze.cpp - Controller handling
projects/psvr2_openvr_driver_ex/sense_controller.cpp - Adaptive triggers
projects/psvr2_openvr_driver_ex/trigger_effect_manager.cpp - Other VR features
projects/psvr2_openvr_driver_ex
State and IPC
- Driver sharing
projects/psvr2_openvr_driver_ex/driver_interface/share_manager.cpp - Custom share manager
projects/libcustomshare/custom_share_manager.cpp - Cross-platform IPC
projects/libcrossipc/cross_ipc.cpp
Developer API
- C API
projects/psvr2_toolkit_capi/psvr2tk_capi.cpp - C API loader
projects/psvr2_toolkit_capi_loader/psvr2tk_capi_loader.cpp - Legacy IPC server
projects/psvr2_toolkit_legacy_ipc_server/main.cpp
User applications
- Toolkit app
projects/psvr2_toolkit_app/main.cpp - C API test UI
projects/psvr2_toolkit_capi_test/main.cpp
Other components
- Toolkit user
- Official HMD driver
- PSVR2 headset
- API client
Connections 20
- Toolkit user → Toolkit app: uses
- Driver loader → Official HMD driver: loads
- Driver hooks → Driver loader: installs hooks
projects/psvr2_openvr_driver_ex/driver_hooks/caesar_manager_hooks.cpp - Driver hooks → Gaze capture: starts thread
projects/psvr2_openvr_driver_ex/driver_hooks/caesar_manager_hooks.cpp - PSVR2 headset → Gaze capture: provides gaze
- Gaze capture → Driver sharing: publishes state
- Controller handling → Custom share manager: reads PCM
projects/psvr2_openvr_driver_ex/sense_controller.cpp - Controller handling → PSVR2 headset: sends reports
- Adaptive triggers → Custom share manager: uses sharing
projects/psvr2_openvr_driver_ex/trigger_effect_manager.cpp - Driver sharing → Cross-platform IPC: uses IPC
projects/psvr2_openvr_driver_ex/driver_interface/share_manager.cpp - Custom share manager → Cross-platform IPC: uses IPC
- C API → Custom share manager: accesses shared data
projects/psvr2_toolkit_capi/psvr2tk_capi.cpp - API client → C API loader: loads API
- C API loader → C API: loads functions
- Legacy IPC server → C API loader: initializes API
projects/psvr2_toolkit_legacy_ipc_server/main.cpp - Legacy IPC server → API client: serves IPC
- C API test UI → C API loader: initializes API
projects/psvr2_toolkit_capi_test/main.cpp - C API test UI → C API: uses capabilities
- Toolkit user → Other VR features: uses improvements
- Other VR features → PSVR2 headset: enhances operation