SPIKE-RT C API Reference [Japanese]
An RTOS-based software platform for LEGO® Education SPIKE™.
読み取り中…
検索中…
一致する文字列を見つけられません
spikeapi::Button クラス

#include <Button.h>

公開メンバ関数

 Button (void)=default
 
bool isLeftPressed ()
 
bool isCenterPressed ()
 
bool isRightPressed ()
 
bool isBluetoothPressed ()
 
bool hasError ()
 

詳解

SPIKE ボタンクラス

構築子と解体子

◆ Button()

spikeapi::Button::Button ( void )
default

コンストラクタ

引数
-
戻り値
-

関数詳解

◆ hasError()

bool spikeapi::Button::hasError ( )
inline

インスタンス生成が正常にできたかどうかを確認するための共通メソッド Buttonでは複数生成が問題ないので、常にfalseを返す

◆ isBluetoothPressed()

bool Button::isBluetoothPressed ( void )

BRUETOOTHボタンが押されているかを確認する

引数
-
戻り値
-

◆ isCenterPressed()

bool Button::isCenterPressed ( void )

CENTERボタンが押されているかを確認する

引数
-
戻り値
-

◆ isLeftPressed()

bool Button::isLeftPressed ( void )

LEFTボタンが押されているかを確認する

引数
-
戻り値
-

◆ isRightPressed()

bool Button::isRightPressed ( void )

RIGHTボタンが押されているかを確認する

引数
-
戻り値
-

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