def processVREvent(self, event):
        "Purpose: Processes a single VR event"
        et = event.eventType
        if et == openvr.VREvent_TrackedDeviceActivated:
            self.setupRenderModelForTrackedDevice( event.trackedDeviceIndex )
            dprintf( "Device %u attached. Setting up render model.\n" % event.trackedDeviceIndex )
        elif et == openvr.VREvent_TrackedDeviceDeactivated:
            dprintf( "Device %u detached.\n" % event.trackedDeviceIndex )
        elif et == openvr.VREvent_TrackedDeviceUpdated:
            dprintf( "Device %u updated.\n" % event.trackedDeviceIndex )
def processVREvent ( self , event ) : et = event . eventType if et == openvr . VREvent_TrackedDeviceActivated : self . setupRenderModelForTrackedDevice ( event . trackedDeviceIndex ) dprintf ( "Device %u attached. Setting up render model.\n" % event . trackedDeviceIndex ) elif et == openvr . VREvent_TrackedDeviceDeactivated : dprintf ( "Device %u detached.\n" % event . trackedDeviceIndex ) elif et == openvr . VREvent_TrackedDeviceUpdated : dprintf ( "Device %u updated.\n" % event . trackedDeviceIndex )
Purpose: Processes a single VR event