SPIKE-RT C API Reference [English]
An RTOS-based software platform for LEGO® Education SPIKE™.
Loading...
Searching...
No Matches
spikeapi::Button Class Reference

#include <Button.h>

Public Member Functions

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

Detailed Description

SPIKE ボタンクラス

Constructor & Destructor Documentation

◆ Button()

spikeapi::Button::Button ( void )
default

コンストラクタ

Parameters
-
Returns
-

Member Function Documentation

◆ hasError()

bool spikeapi::Button::hasError ( )
inline

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

◆ isBluetoothPressed()

bool Button::isBluetoothPressed ( void )

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

Parameters
-
Returns
-

◆ isCenterPressed()

bool Button::isCenterPressed ( void )

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

Parameters
-
Returns
-

◆ isLeftPressed()

bool Button::isLeftPressed ( void )

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

Parameters
-
Returns
-

◆ isRightPressed()

bool Button::isRightPressed ( void )

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

Parameters
-
Returns
-

The documentation for this class was generated from the following files: