OpenCOVER
Public Member Functions | Friends | List of all members
opencover::coPointerButton Class Reference

#include <cover/coVRPluginSupport.h>

Public Member Functions

 coPointerButton (const std::string &name)
 
 ~coPointerButton ()
 
unsigned int getState () const
 
unsigned int oldState () const
 
unsigned int wasPressed (unsigned int buttonMask=vrui::vruiButtons::ALL_BUTTONS) const
 buttons pressed since last frame More...
 
unsigned int wasReleased (unsigned int buttonMask=vrui::vruiButtons::ALL_BUTTONS) const
 buttons released since last frame More...
 
bool notPressed () const
 is no button pressed More...
 
int getWheel (size_t idx=0) const
 accumulated number of wheel events More...
 
void setWheel (size_t idx, int count)
 set number wheel events More...
 
const std::string & name () const
 button name More...
 

Friends

class coVRPluginSupport
 
class coVRMSController
 

Detailed Description

Access to buttons and wheel of interaction devices

Constructor & Destructor Documentation

◆ coPointerButton()

opencover::coPointerButton::coPointerButton ( const std::string &  name)

◆ ~coPointerButton()

opencover::coPointerButton::~coPointerButton ( )

Member Function Documentation

◆ getState()

unsigned int opencover::coPointerButton::getState ( ) const

button state

Returns
button press mask

◆ getWheel()

int opencover::coPointerButton::getWheel ( size_t  idx = 0) const

accumulated number of wheel events

◆ name()

const std::string & opencover::coPointerButton::name ( ) const

button name

◆ notPressed()

bool opencover::coPointerButton::notPressed ( ) const

is no button pressed

◆ oldState()

unsigned int opencover::coPointerButton::oldState ( ) const

previous button state

Returns
old button state

◆ setWheel()

void opencover::coPointerButton::setWheel ( size_t  idx,
int  count 
)

set number wheel events

◆ wasPressed()

unsigned int opencover::coPointerButton::wasPressed ( unsigned int  buttonMask = vrui::vruiButtons::ALL_BUTTONS) const

buttons pressed since last frame

◆ wasReleased()

unsigned int opencover::coPointerButton::wasReleased ( unsigned int  buttonMask = vrui::vruiButtons::ALL_BUTTONS) const

buttons released since last frame

Friends And Related Function Documentation

◆ coVRMSController

friend class coVRMSController
friend

◆ coVRPluginSupport

friend class coVRPluginSupport
friend

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