#include <SFPad.h>
Inheritance diagram for Lamp::SFPad:

Public Types | |
| enum | Button { button0 = 0, button1, button2, button3, buttonL, buttonR, buttonStart, buttonSelect, maxButtonCount, buttonUnknown = -1, buttonA = 0, buttonB = 1, buttonX = 2, buttonY = 3 } |
| ボタン | |
Public Member Functions | |
| SFPad (Joystick *joystick) | |
| コンストラクタ | |
| virtual | ~SFPad () |
| デストラクタ | |
| virtual void | changeButtonMap (Button button, int id) |
| ボタンマップの変更 | |
| virtual int | getButtonMap (const Button button) |
| ボタンマップの取得 | |
| virtual void | setDigitalBoundary (float digitalBoundary) |
| デジタル境界の設定 | |
| virtual float | setDigitalBoundary () const |
| デジタル境界の取得 | |
| virtual float | getXAxis () const |
| X軸の取得. | |
| virtual float | getYAxis () const |
| Y軸の取得. | |
| virtual bool | upKeyPressed () const |
| 上キーが押されているか | |
| virtual bool | upKeyDown () const |
| 上キーが下がった | |
| virtual bool | upKeyUp () const |
| 上キーが上がった | |
| virtual bool | downKeyPressed () const |
| 下キーが押されているか | |
| virtual bool | downKeyDown () const |
| 下キーが下がった | |
| virtual bool | downKeyUp () const |
| 下キーが上がった | |
| virtual bool | leftKeyPressed () const |
| 左キーが押されているか | |
| virtual bool | leftKeyDown () const |
| 左キーが下がった | |
| virtual bool | leftKeyUp () const |
| 左キーが上がった | |
| virtual bool | rightKeyPressed () const |
| 右キーが押されているか | |
| virtual bool | rightKeyDown () const |
| 右キーが下がった | |
| virtual bool | rightKeyUp () const |
| 右キーが上がった | |
| virtual bool | buttonPressed (Button button) const |
| ボタンが押されているか | |
| virtual bool | buttonDown (Button button) const |
| ボタンが下がった | |
| virtual bool | buttonUp (Button button) const |
| ボタンが上がった | |
| virtual String | toString () const |
| 文字列への変換 | |
Static Public Member Functions | |
| bool | checkCompatibility (Joystick *joystick) |
| 互換性チェック | |
| String | getButtonString (Button button) |
| ボタン文字列の取得 | |
Protected Member Functions | |
| bool | yAxisToUpKey (float yAxis) const |
| Y軸値から上キーへの変換. | |
| bool | yAxisToDownKey (float yAxis) const |
| Y軸値から下キーへの変換. | |
| bool | xAxisToLeftKey (float xAxis) const |
| X軸値から左キーへの変換. | |
| bool | xAxisToRightKey (float xAxis) const |
| X軸値から右キーへの変換. | |
Protected Attributes | |
| int | buttonMap_ [maxButtonCount] |
| ボタンマップ | |
| float | digitalBoundary_ |
| デジタル境界 | |
Definition at line 36 of file SFPad.h.
|
|
コンストラクタ
Definition at line 46 of file SFPad.cpp. References Assert, buttonMap_, checkCompatibility(), Lamp::Joystick::getButtonCount(), and Lamp::Pad::joystick_. |
|
|
ボタンが下がった
Definition at line 233 of file SFPad.cpp. References Assert, Lamp::Joystick::buttonDown(), buttonMap_, and Lamp::Pad::joystick_. Referenced by toString(). |
|
|
ボタンが押されているか
Definition at line 227 of file SFPad.cpp. References Assert, buttonMap_, Lamp::Joystick::buttonPressed(), and Lamp::Pad::joystick_. Referenced by toString(). |
|
|
ボタンが上がった
Definition at line 239 of file SFPad.cpp. References Assert, buttonMap_, Lamp::Joystick::buttonUp(), and Lamp::Pad::joystick_. Referenced by toString(). |
|
||||||||||||
|
ボタンマップの変更
Definition at line 132 of file SFPad.cpp. References Assert, and buttonMap_. |
|
|
互換性チェック
Definition at line 34 of file SFPad.cpp. References Lamp::Joystick::getButtonCount(), Lamp::Joystick::hasXAxis(), and Lamp::Joystick::hasYAxis(). Referenced by SFPad(). |
|
|
下キーが下がった
Definition at line 179 of file SFPad.cpp. References Lamp::Joystick::getPreYAxis(), Lamp::Joystick::getYAxis(), Lamp::Pad::joystick_, and yAxisToDownKey(). Referenced by toString(). |
|
|
下キーが押されているか
Definition at line 174 of file SFPad.cpp. References Lamp::Joystick::getYAxis(), Lamp::Pad::joystick_, and yAxisToDownKey(). Referenced by toString(). |
|
|
下キーが上がった
Definition at line 185 of file SFPad.cpp. References Lamp::Joystick::getPreYAxis(), Lamp::Joystick::getYAxis(), Lamp::Pad::joystick_, and yAxisToDownKey(). Referenced by toString(). |
|
|
ボタンマップの取得
Definition at line 92 of file SFPad.h. References Assert, and buttonMap_. |
|
|
ボタン文字列の取得
Definition at line 247 of file SFPad.cpp. References Assert. |
|
|
X軸の取得.
Definition at line 145 of file SFPad.cpp. References Lamp::Joystick::getXAxis(), and Lamp::Pad::joystick_. |
|
|
Y軸の取得.
Definition at line 150 of file SFPad.cpp. References Lamp::Joystick::getYAxis(), and Lamp::Pad::joystick_. |
|
|
左キーが下がった
Definition at line 196 of file SFPad.cpp. References Lamp::Joystick::getPreXAxis(), Lamp::Joystick::getXAxis(), Lamp::Pad::joystick_, and xAxisToLeftKey(). Referenced by toString(). |
|
|
左キーが押されているか
Definition at line 191 of file SFPad.cpp. References Lamp::Joystick::getXAxis(), Lamp::Pad::joystick_, and xAxisToLeftKey(). Referenced by toString(). |
|
|
左キーが上がった
Definition at line 202 of file SFPad.cpp. References Lamp::Joystick::getPreXAxis(), Lamp::Joystick::getXAxis(), Lamp::Pad::joystick_, and xAxisToLeftKey(). Referenced by toString(). |
|
|
右キーが下がった
Definition at line 213 of file SFPad.cpp. References Lamp::Joystick::getPreXAxis(), Lamp::Joystick::getXAxis(), Lamp::Pad::joystick_, and xAxisToRightKey(). Referenced by toString(). |
|
|
右キーが押されているか
Definition at line 208 of file SFPad.cpp. References Lamp::Joystick::getXAxis(), Lamp::Pad::joystick_, and xAxisToRightKey(). Referenced by toString(). |
|
|
右キーが上がった
Definition at line 219 of file SFPad.cpp. References Lamp::Joystick::getPreXAxis(), Lamp::Joystick::getXAxis(), Lamp::Pad::joystick_, and xAxisToRightKey(). Referenced by toString(). |
|
|
デジタル境界の取得
Definition at line 113 of file SFPad.h. References digitalBoundary_. |
|
|
デジタル境界の設定
Definition at line 104 of file SFPad.h. References Assert, and digitalBoundary_. |
|
|
文字列への変換
Reimplemented from Lamp::Pad. Definition at line 255 of file SFPad.cpp. References buttonDown(), buttonPressed(), buttonUp(), downKeyDown(), downKeyPressed(), downKeyUp(), Lamp::String::format(), leftKeyDown(), leftKeyPressed(), leftKeyUp(), rightKeyDown(), rightKeyPressed(), rightKeyUp(), upKeyDown(), upKeyPressed(), and upKeyUp(). |
|
|
上キーが下がった
Definition at line 162 of file SFPad.cpp. References Lamp::Joystick::getPreYAxis(), Lamp::Joystick::getYAxis(), Lamp::Pad::joystick_, and yAxisToUpKey(). Referenced by toString(). |
|
|
上キーが押されているか
Definition at line 157 of file SFPad.cpp. References Lamp::Joystick::getYAxis(), Lamp::Pad::joystick_, and yAxisToUpKey(). Referenced by toString(). |
|
|
上キーが上がった
Definition at line 168 of file SFPad.cpp. References Lamp::Joystick::getPreYAxis(), Lamp::Joystick::getYAxis(), Lamp::Pad::joystick_, and yAxisToUpKey(). Referenced by toString(). |
|
|
X軸値から左キーへの変換.
Definition at line 273 of file SFPad.h. References digitalBoundary_. Referenced by leftKeyDown(), leftKeyPressed(), and leftKeyUp(). |
|
|
X軸値から右キーへの変換.
Definition at line 282 of file SFPad.h. References digitalBoundary_. Referenced by rightKeyDown(), rightKeyPressed(), and rightKeyUp(). |
|
|
Y軸値から下キーへの変換.
Definition at line 264 of file SFPad.h. References digitalBoundary_. Referenced by downKeyDown(), downKeyPressed(), and downKeyUp(). |
|
|
Y軸値から上キーへの変換.
Definition at line 255 of file SFPad.h. References digitalBoundary_. Referenced by upKeyDown(), upKeyPressed(), and upKeyUp(). |
1.3.2