mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-17 03:29:12 +01:00
1e4f3c589d
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5863 8ced0084-cf51-0410-be5f-012b33b47a6e
35 lines
414 B
C++
35 lines
414 B
C++
#ifndef NUNCHUCK_H
|
|
#define NUNCHUCK_H
|
|
|
|
#include "Attachment.h"
|
|
|
|
namespace WiimoteEmu
|
|
{
|
|
|
|
class Nunchuk : public Attachment
|
|
{
|
|
public:
|
|
Nunchuk();
|
|
virtual void GetState( u8* const data, const bool focus );
|
|
|
|
enum
|
|
{
|
|
BUTTON_C = 0x02,
|
|
BUTTON_Z = 0x01,
|
|
};
|
|
|
|
private:
|
|
Tilt* m_tilt;
|
|
Force* m_swing;
|
|
|
|
Buttons* m_shake;
|
|
|
|
Buttons* m_buttons;
|
|
AnalogStick* m_stick;
|
|
|
|
unsigned int m_shake_step[3];
|
|
};
|
|
|
|
}
|
|
|
|
#endif |