PixelLightAPI
.
|
#include <WiiMote.h>
Public Types | |
enum | EProductID { VendorID = 0x057e, ProductID = 0x0306, DeviceClass0 = 0x04, DeviceClass1 = 0x25, DeviceClass2 = 0x00 } |
enum | EReport { ReportStatus = 0x20, ReportReadMemory = 0x21, ReportButtons = 0x30, ReportButtonsAccel = 0x31, ReportButtonsAccelIR = 0x33, ReportButtonsAccelExt = 0x35, ReportButtonsAccelIRExt = 0x37 } |
Report type. More... | |
enum | EIRMode { IROff = 0x00, IRBasic = 0x01, IRExtended = 0x03, IRFull = 0x05 } |
Infrared sensor mode. More... | |
enum | EExtension { ExtNone = 0x0000, ExtNunchuk = 0xfefe, ExtClassic = 0xfdfd, ExtPartiallyInserted = 0xffff } |
WiiMote extension. More... | |
Public Member Functions | |
PLINPUT_API | WiiMote (const PLCore::String &sName, DeviceImpl *pImpl) |
Constructor. | |
virtual PLINPUT_API | ~WiiMote () |
Destructor. | |
PLINPUT_API EReport | GetReportMode () const |
Get report mode. | |
PLINPUT_API void | SetReportMode (EReport nReportMode, bool bContinuous=false) |
Set report mode. | |
PLINPUT_API EIRMode | GetIRMode () const |
Get infrared mode. | |
PLINPUT_API void | SetIRMode (EIRMode nIRMode) |
Set infrared mode. | |
PLINPUT_API EExtension | GetExtension () const |
Get extension. | |
PLINPUT_API PLCore::uint8 | GetBattery () const |
Get battery state. | |
PLINPUT_API void | Calibrate () |
Calibrate device. | |
virtual PLINPUT_API void | UpdateOutputControl (Control *pControl) override |
Update output controls (LEDs, effects etc.) |
WiiMote input device.
Report type.
WiiMote extension.
PLINPUT_API PLInput::WiiMote::WiiMote | ( | const PLCore::String & | sName, |
DeviceImpl * | pImpl | ||
) |
Constructor.
[in] | sName | Device name |
[in] | pImpl | System specific device implementation, must be valid! |
virtual PLINPUT_API PLInput::WiiMote::~WiiMote | ( | ) | [virtual] |
Destructor.
PLINPUT_API EReport PLInput::WiiMote::GetReportMode | ( | ) | const |
Get report mode.
PLINPUT_API void PLInput::WiiMote::SetReportMode | ( | EReport | nReportMode, |
bool | bContinuous = false |
||
) |
Set report mode.
[in] | nReportMode | Report mode |
[in] | bContinuous | Continuous updates? |
PLINPUT_API EIRMode PLInput::WiiMote::GetIRMode | ( | ) | const |
Get infrared mode.
PLINPUT_API void PLInput::WiiMote::SetIRMode | ( | EIRMode | nIRMode | ) |
Set infrared mode.
[in] | nIRMode | Infrared mode |
PLINPUT_API EExtension PLInput::WiiMote::GetExtension | ( | ) | const |
Get extension.
PLINPUT_API PLCore::uint8 PLInput::WiiMote::GetBattery | ( | ) | const |
Get battery state.
PLINPUT_API void PLInput::WiiMote::Calibrate | ( | ) |
Calibrate device.
virtual PLINPUT_API void PLInput::WiiMote::UpdateOutputControl | ( | Control * | pControl | ) | [override, virtual] |
Update output controls (LEDs, effects etc.)
[in] | pControl | Output control that has been changed, must be valid! |
Reimplemented from PLInput::Controller.
|