通信経由PS5コントローラークラス [詳解]
#include <Udon/Com/Pad/PadPS5.hpp>
公開型 | |
| using | MessageType = Message::PadPS5 |
| 受信メッセージ型 | |
| using | ReaderType = Reader<MessageType> |
| 受信クラス型 | |
公開メンバ関数 | |
| operator bool () const noexcept | |
| コントローラーが接続されているか | |
| bool | isEmergencyStop () const noexcept |
| 非常停止を行うべきかを取得 | |
| bool | isOperable () const noexcept |
| 動作可能であるか | |
| Input | getTriangle () const noexcept |
| ▵ボタン | |
| Input | getCircle () const noexcept |
| ○ボタン | |
| Input | getCross () const noexcept |
| ×ボタン | |
| Input | getSquare () const noexcept |
| □ボタン | |
| Input | getUp () const noexcept |
| 十字キー上 | |
| Input | getRight () const noexcept |
| 十字キー右 | |
| Input | getDown () const noexcept |
| 十字キー下 | |
| Input | getLeft () const noexcept |
| 十字キー左 | |
| Input | getL1 () const noexcept |
| L1ボタン | |
| Input | getR1 () const noexcept |
| R1ボタン | |
| Input | getL2 () const noexcept |
| L2ボタン | |
| Input | getR2 () const noexcept |
| R2ボタン | |
| Input | getL3 () const noexcept |
| 左スティック押し込み | |
| Input | getR3 () const noexcept |
| 右スティック押し込み | |
| Input | getCreate () const noexcept |
| クリエイトボタン(左上ボタン) | |
| Input | getOption () const noexcept |
| オプションボタン(右上ボタン) | |
| Input | getTouch () const noexcept |
| タッチパッドボタン | |
| Input | getMic () const noexcept |
| マイクボタン | |
| Input | getPs () const noexcept |
| PSボタン | |
| Vec2 | getLeftStick () const noexcept |
| 左スティック [x,y: -255~255] | |
| Vec2 | getRightStick () const noexcept |
| 右スティック [x,y: -255~255] | |
| Stick | getMoveInfo () const noexcept |
| ロボットの移動に必要なスティックの情報 Udon::Stick オブジェクト {{x,y},turn} を取得 | |
| void | update (int deadZone=20) noexcept |
| 更新 | |
| MessageType | getMessage () const |
| メッセージ構造体に変換 | |
通信経由PS5コントローラークラス
| Reader | 受信クラス |
| using Udon::PadPS5< Reader >::MessageType = Message::PadPS5 |
受信メッセージ型
| using Udon::PadPS5< Reader >::ReaderType = Reader<MessageType> |
受信クラス型
|
inlinenoexcept |
○ボタン
|
inlinenoexcept |
クリエイトボタン(左上ボタン)
|
inlinenoexcept |
×ボタン
|
inlinenoexcept |
十字キー下
|
inlinenoexcept |
L1ボタン
|
inlinenoexcept |
L2ボタン
|
inlinenoexcept |
左スティック押し込み
|
inlinenoexcept |
十字キー左
|
inlinenoexcept |
左スティック [x,y: -255~255]
|
inline |
メッセージ構造体に変換
|
inlinenoexcept |
マイクボタン
|
inlinenoexcept |
ロボットの移動に必要なスティックの情報 Udon::Stick オブジェクト {{x,y},turn} を取得
|
inlinenoexcept |
オプションボタン(右上ボタン)
|
inlinenoexcept |
PSボタン
|
inlinenoexcept |
R1ボタン
|
inlinenoexcept |
R2ボタン
|
inlinenoexcept |
右スティック押し込み
|
inlinenoexcept |
十字キー右
|
inlinenoexcept |
右スティック [x,y: -255~255]
|
inlinenoexcept |
□ボタン
|
inlinenoexcept |
タッチパッドボタン
|
inlinenoexcept |
▵ボタン
|
inlinenoexcept |
十字キー上
|
inlinenoexcept |
非常停止を行うべきかを取得
|
inlinenoexcept |
動作可能であるか
|
inlineexplicitnoexcept |
コントローラーが接続されているか
|
inlinenoexcept |
更新
| deadZone | スティックのデッドゾーンの範囲 負方向にも適用されます (0~255) |