pfvInputMngrCallback(3pf) OpenGL Performer 3.2.2 libpfv C++ Reference Pages
NAMEpfvInputMngrCallback - Bind User-Callback-functions to specific keyboard
keys.
FUNCTION SPECIFICATION
#include <Performer/pfv/pfvInput.h>
void pfvInputMngrCallback::enable();
void pfvInputMngrCallback::disable();
int pfvInputMngrCallback::getEnabled();
uint64_t pfvInputMngrCallback::getViewMask();
void pfvInputMngrCallback::setViewMask(uint64_t mask);
char* pfvInputMngrCallback::getEventMask();
void pfvInputMngrCallback::setEventMask(char* str);
int pfvInputMngrCallback::bindKeys(char*keys);
int -
pfvInputMngrCallback::pfvInputMngrCallback::unbindKeys(char*keys);
DESCRIPTION
The pfvInputMngrCallback class allows user callbacks to be registered and
associated with specific key presses over one or more views.
pfvInputMngrCallback objects should not be created directly through their
constructor (which is protected). Instead, pfvInputMngrCallback objects
should be created through the pfvInputMngr::addCallback method. (see man
page for pfvInputMngr).
pfvInputMngrCallback::enable and pfvInputMngrCallback::disable allow user
to enable and disable a callback without deleting it. The associated
user-callback will only be called if pfvInputMngrCallback is enabled.
pfvInputMngrCallback::getEnabled returns 1 if pfvInputMngrCallback is
currently enabled, 0 otherwise.
pfvInputMngrCallback::getViewMask returns the 64-bit viewMask associated
with pfvInputMngrCallback.
pfvInputMngrCallback::setViewMask sets the 64-bit viewMask associated
with pfvInputMngrCallback to mask. If mask is non-zero, only key-presses
over views included in viewMask will cause user-callback to be called.
pfvInputMngrCallback::getEventMask returns a zero-terminated sorted
string in which each character is a key value, as defined in pfvInput.h,
indicating which key-presses should cause user-callback to be called by
Page 1
pfvInputMngrCallback(3pf) OpenGL Performer 3.2.2 libpfv C++ Reference Pages
Input Manager.
pfvInputMngrCallback::setEventMask sets the EventMask of
pfvInputMngrCallback to str. str must be a zero-terminated string in
which each character is a key value, as defined in pfvInput.h, indicating
which key-presses should cause user-callback to be called. Note that str
does not need to be sorted, and duplicate enties found in str will be
ignored.
pfvInputMngrCallback::bindKeys adds the keys encoded in the zero-
terminated string str to the list of strings associated with
pfvInputMngrCallback. Note that str does not need to be sorted, and
duplicate enties found in str will be ignored.
pfvInputMngrCallback::unbindKeys removes the keys encoded in the zero-
terminated string str from the list of strings associated with
pfvInputMngrCallback. Note that str does not need to be sorted, and
duplicate enties found in str will be ignored.
NOTESSEE ALSO
pfvXml, pfvInputMngr, pfvDisplayMngr, pfvViewer, pfvView,
pfuGetEventStream
Page 2