#include <SoQtAppleRemote.h>
Public Member Functions | |
| SoQtAppleRemote () | |
| Constructor. | |
| ~SoQtAppleRemote () | |
| Destructor. | |
| virtual const SoEvent * | translateEvent (QEvent *event) |
| This converts a window system event into an SoEvent. | |
| virtual void | enable (QWidget *w, SoQtEventHandler *f, void *data) |
| These functions will enable/disable this device for the passed widget. | |
| virtual void | disable (QWidget *w, SoQtEventHandler *f, void *data) |
Static Public Member Functions | |
| static SbBool | exists () |
| Return whether or not the Apple remote control device exists for use. | |
| static void | initClass () |
The driver supports the Apple IR remote control device. On Mac OS X no additional driver is required.
The button state of the device gets translated into a SoAppleRemoteButtonEvent.
Definition at line 41 of file SoQtAppleRemote.h.
| SoQtAppleRemote::SoQtAppleRemote | ( | ) |
Constructor.
| SoQtAppleRemote::~SoQtAppleRemote | ( | ) |
Destructor.
| virtual void SoQtAppleRemote::disable | ( | QWidget * | w, | |
| SoQtEventHandler * | f, | |||
| void * | data | |||
| ) | [virtual] |
| virtual void SoQtAppleRemote::enable | ( | QWidget * | w, | |
| SoQtEventHandler * | f, | |||
| void * | data | |||
| ) | [virtual] |
These functions will enable/disable this device for the passed widget.
The callback function f will be invoked when events occur in w. data is the clientData which will be passed.
| static SbBool SoQtAppleRemote::exists | ( | ) | [static] |
Return whether or not the Apple remote control device exists for use.
| static void SoQtAppleRemote::initClass | ( | ) | [static] |
| virtual const SoEvent* SoQtAppleRemote::translateEvent | ( | QEvent * | event | ) | [virtual] |
This converts a window system event into an SoEvent.
The function returns NULL if the event is not from this device.
1.5.8