#include <joystickCtrl.h>


Classes | |
| class | EachJoystick |
| class | JoystickResource |
Public Types | |
| enum | { FreeIndex = -1 } |
Public Member Functions | |
| const char * | what (void) |
| エラーメッセージ文字列を返す | |
| bool | activate (int index=FreeIndex) |
| コントローラ資源の初期化 | |
| bool | isActivated (void) const |
| 初期化されているかどうか | |
| int | getNumAxis (void) const |
| 軸の数を返す | |
| int | getNumButtons (void) const |
| ボタンの数を返す | |
| short | getAxisValue (int index) const |
| 軸の値 | |
| bool | getButtonValue (int index) const |
| ボタンの状態を返す | |
Static Public Member Functions | |
| static int | size (void) |
| 検出したジョイスティック数を返す | |
| static void | joystickEventHandler (SDL_Event &event) |
| ジョイスティックのイベント処理 | |
Friends | |
| class | UserInput |
Definition at line 23 of file joystickCtrl.h.
| const char * JoystickCtrl::what | ( | void | ) |
| bool JoystickCtrl::activate | ( | int | index = FreeIndex |
) |
コントローラ資源の初期化
index に FreeIndex を指定することにより、空いているコントローラ番号が用いられる
| index | [i] システムに割り振られたコントローラ番号 |
| 初期化に成功した場合 | true |
Definition at line 59 of file joystickCtrl.cpp.
| int JoystickCtrl::size | ( | void | ) | [static] |
| void JoystickCtrl::joystickEventHandler | ( | SDL_Event & | event | ) | [static] |
ジョイスティックのイベント処理
この関数を呼ぶことで、ジョイスティック情報が更新される
| event | [i] SDL_event |
Definition at line 107 of file joystickCtrl.cpp.
| bool JoystickCtrl::isActivated | ( | void | ) | const |
| int JoystickCtrl::getNumAxis | ( | void | ) | const |
| int JoystickCtrl::getNumButtons | ( | void | ) | const |
| short JoystickCtrl::getAxisValue | ( | int | index | ) | const |
| bool JoystickCtrl::getButtonValue | ( | int | index | ) | const |
ボタンの状態を返す
| index | [i] ボタンの番号 |
Definition at line 171 of file joystickCtrl.cpp.
1.5.7.1