.TH "SoSpaceballButtonEvent" 3 "Thu May 29 2014" "Version 4.0.0a" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoSpaceballButtonEvent \- .PP The \fBSoSpaceballButtonEvent\fP class contains information about spaceball button interaction\&. .PP When the user presses any buttons on a spaceball device, these will be translated from a system specific event into a Coin event and sent to the scenegraph by using instances of this class\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBSoButtonEvent\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "enum \fBButton\fP { \fBANY\fP, \fBBUTTON1\fP, \fBBUTTON2\fP, \fBBUTTON3\fP, \fBBUTTON4\fP, \fBBUTTON5\fP, \fBBUTTON6\fP, \fBBUTTON7\fP, \fBBUTTON8\fP, \fBPICK\fP }" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "virtual \fBSoType\fP \fBgetTypeId\fP (void) const " .br .ti -1c .RI "\fBSoSpaceballButtonEvent\fP (void)" .br .ti -1c .RI "virtual \fB~SoSpaceballButtonEvent\fP ()" .br .ti -1c .RI "void \fBsetButton\fP (\fBButton\fP button)" .br .ti -1c .RI "\fBButton\fP \fBgetButton\fP (void) const " .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static void \fBinitClass\fP (void)" .br .ti -1c .RI "static SbBool \fBisButtonPressEvent\fP (const \fBSoEvent\fP *e, \fBButton\fP whichButton)" .br .ti -1c .RI "static SbBool \fBisButtonReleaseEvent\fP (const \fBSoEvent\fP *e, \fBButton\fP whichButton)" .br .ti -1c .RI "static SbBool \fBenumToString\fP (\fBButton\fP enumval, \fBSbString\fP &stringrep)" .br .in -1c .SH "Detailed Description" .PP The \fBSoSpaceballButtonEvent\fP class contains information about spaceball button interaction\&. .PP When the user presses any buttons on a spaceball device, these will be translated from a system specific event into a Coin event and sent to the scenegraph by using instances of this class\&. .PP \fBSee also:\fP .RS 4 \fBSoEvent\fP, \fBSoButtonEvent\fP, \fBSoMouseButtonEvent\fP, \fBSoKeyboardEvent\fP .PP \fBSoEventCallback\fP, \fBSoHandleEventAction\fP .RE .PP .SH "Member Enumeration Documentation" .PP .SS "enum \fBSoSpaceballButtonEvent::Button\fP" This enum contains all spaceball buttons detected by Coin\&. .SH "Constructor & Destructor Documentation" .PP .SS "SoSpaceballButtonEvent::SoSpaceballButtonEvent (void)" Constructor\&. .SS "SoSpaceballButtonEvent::~SoSpaceballButtonEvent ()\fC [virtual]\fP" Destructor\&. .SH "Member Function Documentation" .PP .SS "\fBSoType\fP SoSpaceballButtonEvent::getTypeId (void) const\fC [virtual]\fP" Returns the actual type id of an instantiated object\&. .PP Reimplemented from \fBSoButtonEvent\fP\&. .SS "void SoSpaceballButtonEvent::initClass (void)\fC [static]\fP" Initialize the type information data\&. .SS "void SoSpaceballButtonEvent::setButton (\fBSoSpaceballButtonEvent::Button\fPbuttonarg)" Set the value of the button which the user interacted with\&. .PP This method is used from the window specific device classes when translating events to the generic Coin library\&. .PP \fBSee also:\fP .RS 4 \fBgetButton()\fP .RE .PP .SS "\fBSoSpaceballButtonEvent::Button\fP SoSpaceballButtonEvent::getButton (void) const" Returns the value of the button which was pressed or released\&. .PP \fBSee also:\fP .RS 4 \fBgetState()\fP .PP \fBwasShiftDown()\fP, \fBwasCtrlDown()\fP, \fBwasAltDown()\fP, \fBgetPosition()\fP, \fBgetTime()\fP .RE .PP .SS "SbBool SoSpaceballButtonEvent::isButtonPressEvent (const \fBSoEvent\fP *e, \fBSoSpaceballButtonEvent::Button\fPwhichButton)\fC [static]\fP" Convenience method for quickly checking if the given event is a press on the given button, \fCwhichButton\fP\&. .PP \fBSee also:\fP .RS 4 \fBisButtonReleaseEvent()\fP, \fBisOfType()\fP, \fBgetButton()\fP, \fBgetState()\fP .RE .PP .SS "SbBool SoSpaceballButtonEvent::isButtonReleaseEvent (const \fBSoEvent\fP *e, \fBSoSpaceballButtonEvent::Button\fPwhichButton)\fC [static]\fP" Convenience method for quickly checking if the given event is a release of the given button, \fCwhichButton\fP\&. .PP \fBSee also:\fP .RS 4 \fBisButtonPressEvent()\fP, \fBisOfType()\fP, \fBgetButton()\fP, \fBgetState()\fP .RE .PP .SS "SbBool SoSpaceballButtonEvent::enumToString (\fBButton\fPenumval, \fBSbString\fP &stringrep)\fC [static]\fP" Converts from an enum value of type \fBSoMouseButtonEvent::Button\fP to a string containing the enum symbol\&. .PP This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2\&.1 API\&. .PP \fBSince:\fP .RS 4 Coin 3\&.0 .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.