| 
    gramods
    
   | 
 
The base of ButtonsTrackers, reporting button states. More...
#include <ButtonsTracker.hh>
Classes | |
| struct | ButtonsSample | 
| A sample containing the state of any number of buttons.  More... | |
Public Types | |
| typedef std::chrono::steady_clock | clock | 
Public Member Functions | |
| virtual std::string | getDefaultKey () override | 
| Returns the default key, in Configuration, for the Object.  More... | |
| virtual bool | getButtons (ButtonsSample &b)=0 | 
| Replaces the contents of p with button data.  More... | |
  Public Member Functions inherited from gramods::gmCore::Object | |
| Object () | |
| Initializes internal data.  More... | |
| virtual | ~Object () | 
| Cleaning up internal data.  More... | |
| virtual void | initialize () | 
| Called to initialize the Object.  More... | |
| virtual void | accept (Visitor *visitor) | 
| Calls the visitors apply method with this as argument.  More... | |
| virtual void | traverse (Visitor *visitor) | 
| Calls the child Object's accept method, if such exist.  More... | |
| bool | isInitialized () | 
| Returns true if the Object is initialized.  More... | |
The base of ButtonsTrackers, reporting button states.
      
  | 
  pure virtual | 
Replaces the contents of p with button data.
Returns true if data could be read, false otherwise. Use sample time to check if data are fresh.
Implemented in gramods::gmTrack::VrpnButtonsTracker, gramods::gmTrack::ButtonsMapper, gramods::gmTrack::TimeSampleButtonsTracker, and gramods::gmTrack::OpenVRButtonsTracker.
      
  | 
  inlineoverridevirtual | 
Returns the default key, in Configuration, for the Object.
Reimplemented from gramods::gmCore::Object.