2010-04-13 05:15:38 +00:00
|
|
|
#include "Attachment.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace WiimoteEmu
|
|
|
|
{
|
|
|
|
|
|
|
|
class Nunchuk : public Attachment
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Nunchuk();
|
2010-04-22 07:11:49 +00:00
|
|
|
void GetState( u8* const data, const bool focus );
|
2010-04-13 05:15:38 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Tilt* m_tilt;
|
|
|
|
Force* m_swing;
|
|
|
|
|
|
|
|
Buttons* m_shake;
|
|
|
|
|
|
|
|
Buttons* m_buttons;
|
|
|
|
AnalogStick* m_stick;
|
2010-04-22 07:11:49 +00:00
|
|
|
|
2010-04-29 18:51:04 +00:00
|
|
|
unsigned int m_shake_step[3];
|
2010-04-13 05:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|