gramods
Public Member Functions | List of all members
gramods::gmCore::OpenVR::EventConsumer Struct Referenceabstract

Interface for event consumers that can be registered with the OpenVR instance. More...

#include <OpenVR.hh>

Public Member Functions

virtual bool processEvent (const vr::VREvent_t *event, bool is_consumed)=0
 Process an incoming OpenVR event and return true if the event was acted upon. More...
 

Detailed Description

Interface for event consumers that can be registered with the OpenVR instance.

Member Function Documentation

◆ processEvent()

virtual bool gramods::gmCore::OpenVR::EventConsumer::processEvent ( const vr::VREvent_t *  event,
bool  is_consumed 
)
pure virtual

Process an incoming OpenVR event and return true if the event was acted upon.

Parameters
eventThe OpenVR event to process.
is_consumedSet to true if another event consumer has acted upon the event.
Returns
True if the event has been acted upon, false otherwise.

The documentation for this struct was generated from the following file: