UdonLibrary 1.0.0
機械システム研究部 C++ ライブラリ
読み取り中…
検索中…
一致する文字列を見つけられません
Udon::PadPS5USB クラス

有線USB経由PS5コントローラークラス [詳解]

#include <Udon/Com/Pad/PadPS5USB.hpp>

Udon::PadPS5USB の継承関係図
Udon::Impl::PadPS5OnboardUSBReader< Dummy >

公開メンバ関数

 PadPS5USB ()
 
bool begin ()
 コントローラーと通信開始
 
void update ()
 更新
 
Message::PadPS5 getMessage () const
 Message::PadPS5型のメッセージを取得する
 
void setLightBar (const Udon::RGB &color)
 ライトバーの色を設定する
 
void setPlayerLamp (uint8_t mask=0b011)
 5つのプレイヤーのランプの点灯を設定する
 
void setMicLed (bool on=true)
 マイクのLEDの点灯を設定する
 
void vibrate (uint8_t big=100, uint8_t small=100)
 バイブレーション
 

詳解

有線USB経由PS5コントローラークラス

構築子と解体子

◆ PadPS5USB()

Udon::PadPS5USB::PadPS5USB ( )
inline

関数詳解

◆ begin()

bool Udon::PadPS5USB::begin ( )
inline

コントローラーと通信開始

戻り値

◆ getMessage()

Message::PadPS5 Udon::PadPS5USB::getMessage ( ) const
inline

Message::PadPS5型のメッセージを取得する

戻り値

◆ setLightBar()

void Udon::PadPS5USB::setLightBar ( const Udon::RGB & color)
inline

ライトバーの色を設定する

引数
color

◆ setMicLed()

void Udon::PadPS5USB::setMicLed ( bool on = true)
inline

マイクのLEDの点灯を設定する

引数
on

◆ setPlayerLamp()

void Udon::PadPS5USB::setPlayerLamp ( uint8_t mask = 0b011)
inline

5つのプレイヤーのランプの点灯を設定する

引数
mask0b001: HIGH LOW LOW LOW HIGH 0b010: LOW HIGH LOW HIGH LOW 0b100: LOW LOW HIGH LOW LOW

◆ update()

void Udon::PadPS5USB::update ( )
inline

更新

◆ vibrate()

void Udon::PadPS5USB::vibrate ( uint8_t big = 100,
uint8_t small = 100 )
inline

バイブレーション

引数
big大きい振動モーターの強さ 0~255
small小さい振動モーターの強さ 0~255

このクラス詳解は次のファイルから抽出されました: