| 1 |
NAME SoSpaceballButtonEvent SoSpballEv SO_SPBALL_EV_ { spaceball button press and release events } |
| 2 |
|
| 3 |
INCLUDE events/SoSpaceballButtonEvent.h |
| 4 |
|
| 5 |
DESC { \cSoSpaceballButtonEvent\. represents spaceball button press and release events |
| 6 |
in the Inventor event model. |
| 7 |
} |
| 8 |
|
| 9 |
ENUM Button { |
| 10 |
ANY "Any spaceball button", |
| 11 |
BUTTON1 "Spaceball button 1", |
| 12 |
BUTTON2 "Spaceball button 2", |
| 13 |
BUTTON3 "Spaceball button 3", |
| 14 |
BUTTON4 "Spaceball button 4", |
| 15 |
BUTTON5 "Spaceball button 5", |
| 16 |
BUTTON6 "Spaceball button 6", |
| 17 |
BUTTON7 "Spaceball button 7", |
| 18 |
BUTTON8 "Spaceball button 8", |
| 19 |
PICK "Spaceball pick button" |
| 20 |
} |
| 21 |
|
| 22 |
BEGIN C++ |
| 23 |
DEFINE { SO_SPACEBALL_PRESS_EVENT(EVENT,BUTTON) |
| 24 |
(SoSpaceballButtonEvent::isButtonPressEvent(EVENT, |
| 25 |
SoSpaceballButtonEvent::BUTTON)) } |
| 26 |
|
| 27 |
DEFINE { SO_SPACEBALL_RELEASE_EVENT(EVENT,BUTTON) |
| 28 |
(SoSpaceballButtonEvent::isButtonReleaseEvent(EVENT, |
| 29 |
SoSpaceballButtonEvent::BUTTON)) } |
| 30 |
END |
| 31 |
BEGIN C |
| 32 |
DEFINE { SO_SPBALL_PRESS_EV(EVENT,BUTTON) |
| 33 |
(SoSpballEvIsBtnPressEv(EVENT,BUTTON)) } |
| 34 |
DEFINE { SO_SPBALL_RELEASE_EV(EVENT,BUTTON) |
| 35 |
(SoSpballEvIsBtnReleaseEv(EVENT,BUTTON)) } |
| 36 |
END |
| 37 |
|
| 38 |
METHOD "" SoSpaceballButtonEvent() { Constructor. } |
| 39 |
|
| 40 |
METHOD "" static SoType getClassTypeId() { |
| 41 |
Return the type id for the \cSoSpaceballButtonEvent\. class. |
| 42 |
} |
| 43 |
|
| 44 |
BEGIN C++ |
| 45 |
METHOD "setBtn" void setButton(SoSpaceballButtonEvent::Button b) {} |
| 46 |
METHOD "getBtn" SoSpaceballButtonEvent::Button getButton() const |
| 47 |
{ Set and get which spaceball button generated the event. } |
| 48 |
END |
| 49 |
BEGIN C |
| 50 |
METHOD "setBtn" void setButton(SoSpaceballButtonEventButton b) {} |
| 51 |
METHOD "getBtn" SoSpaceballButtonEventButton getButton() const |
| 52 |
{ Set and get which spaceball button generated the event. } |
| 53 |
END |
| 54 |
|
| 55 |
BEGIN C++ |
| 56 |
METHOD "isBtnPressEv" static SbBool isButtonPressEvent( |
| 57 |
const SoEvent *e, |
| 58 |
SoSpaceballButtonEvent::Button whichButton) {} |
| 59 |
METHOD "isBtnReleaseEv" static SbBool isButtonReleaseEvent( |
| 60 |
const SoEvent *e, |
| 61 |
SoSpaceballButtonEvent::Button whichButton) |
| 62 |
{ Returns whether the passed event is a spaceball button press or release event |
| 63 |
of the passed button. When \eSoSpaceballButtonEvent::ANY\. is passed, |
| 64 |
this returns \eTRUE\. if the event represents a button press |
| 65 |
or release of any spaceball button. } |
| 66 |
END |
| 67 |
BEGIN C |
| 68 |
METHOD "isBtnPressEv" static SbBool isButtonPressEvent( |
| 69 |
const SoEvent *e, |
| 70 |
SoSpaceballButtonEventButton whichButton) {} |
| 71 |
METHOD "isBtnReleaseEv" static SbBool isButtonReleaseEvent( |
| 72 |
const SoEvent *e, |
| 73 |
SoSpaceballButtonEventButton whichButton) |
| 74 |
{ Returns whether the passed event is a spaceball button press or release event |
| 75 |
of the passed button. When \eSO_SPBALL_EV_ANY\. is passed, |
| 76 |
this returns \eTRUE\. if the event represents a button press |
| 77 |
or release of any spaceball button. } |
| 78 |
END |
| 79 |
|
| 80 |
ALSO { |
| 81 |
SoEvent, SoButtonEvent, SoKeyboardEvent, SoLocation2Event, SoMotion3Event, |
| 82 |
SoMouseButtonEvent, |
| 83 |
SoHandleEventAction, SoEventCallback, SoSelection, SoInteraction, |
| 84 |
SoXtDevice } |
| 85 |
|
| 86 |
|
| 87 |
|