2 #include <Multimedia/SDX.h>
3 #include <Multimedia/Key.h>
4 #include <Multimedia/InputEnum.h>
13 PadType inputType = PadType::KeyAndPad1;
60 handle = SDL_JoystickOpen(0);
112 Down.
Update( press[(
int)PadCode::Down]);
113 Left.
Update(press[(
int)PadCode::Left]);
114 Right.
Update(press[(
int)PadCode::Right]);
115 Up.
Update(press[(
int)PadCode::Up]);
116 Button1.
Update(press[(
int)PadCode::Button1]);
117 Button2.
Update(press[(
int)PadCode::Button2]);
118 Button3.
Update(press[(
int)PadCode::Button3]);
119 Button4.
Update(press[(
int)PadCode::Button4]);
120 Button5.
Update(press[(
int)PadCode::Button5]);
121 Button6.
Update(press[(
int)PadCode::Button6]);
122 Button7.
Update(press[(
int)PadCode::Button7]);
123 Button8.
Update(press[(
int)PadCode::Button8]);
124 Button9.
Update(press[(
int)PadCode::Button9]);
125 Button10.
Update(press[(
int)PadCode::Button10]);
126 Button11.
Update(press[(
int)PadCode::Button11]);
127 Button12.
Update(press[(
int)PadCode::Button12]);
128 Button13.
Update(press[(
int)PadCode::Button13]);
129 Button14.
Update(press[(
int)PadCode::Button14]);
130 Button15.
Update(press[(
int)PadCode::Button15]);
131 Button16.
Update(press[(
int)PadCode::Button16]);
132 Button17.
Update(press[(
int)PadCode::Button17]);
133 Button18.
Update(press[(
int)PadCode::Button18]);
134 Button19.
Update(press[(
int)PadCode::Button19]);
135 Button20.
Update(press[(
int)PadCode::Button20]);
136 Button21.
Update(press[(
int)PadCode::Button21]);
137 Button22.
Update(press[(
int)PadCode::Button22]);
138 Button23.
Update(press[(
int)PadCode::Button23]);
139 Button24.
Update(press[(
int)PadCode::Button24]);
140 Button25.
Update(press[(
int)PadCode::Button25]);
141 Button26.
Update(press[(
int)PadCode::Button26]);
142 Button27.
Update(press[(
int)PadCode::Button27]);
143 Button28.
Update(press[(
int)PadCode::Button28]);
175 return SDL_NumJoysticks();
static int GetCount()
接続中のパッド数を取得.
Definition: Joypad.h:173
PadType
ゲームパッドの種類.
Definition: InputEnum.h:7
bool StopVibration()
パッドの振動を停止する[未実装].
Definition: Joypad.h:167
ジョイパッドの状態を表すクラス.
Definition: Joypad.h:10
void Reset()
キーのリセット.
Definition: Key.h:17
void Update(int 押下フラグ)
押下状態の更新.
Definition: Key.h:26
PadType GetInputType()
パッドタイプの取得.
Definition: Joypad.h:147
void Reset()
状態のリセット.
Definition: Joypad.h:70
void Make(PadType パッドタイプ)
パッドの作成.
Definition: Joypad.h:64
各ボタンとキーを表すクラス.
Definition: Key.h:8
void Update()
状態の更新.
Definition: Joypad.h:110
bool StartVibration(double 強さ, int 振動ミリ秒)
パッドを振動させる[未実装].
Definition: Joypad.h:161
void SetInputType(PadType 入力タイプ)
パッドタイプの設定.
Definition: Joypad.h:153