mirror of
https://github.com/ValveSoftware/openvr.git
synced 2026-11-17 02:11:36 +00:00
1
IVROverlay::HandleControllerOverlayInteractionAsMouse
Joe Ludwig edited this page 2015-08-17 16:34:00 -07:00
bool HandleControllerOverlayInteractionAsMouse( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unControllerDeviceIndex )
Processes mouse input from the specified controller as though it were a mouse pointed at the overlay.
VROverlayHandle_t ulOverlayHandle- Handle of the overlay to test the controller againstTrackedDeviceIndex_t unControllerDeviceIndex- Device index of the controller to test
Description
Processes mouse input from the specified controller as though it were a mouse pointed at the overlay. The controller is treated like a laser pointer on the -z axis. The point where the laser pointer would intersect with the overlay is the mouse position, the trigger is left mouse, and the track pad is right mouse.
Returns true if the controller is pointed at the overlay and an event was generated.