# SoftBank Robotics documentation What's new in NAOqi 2.8?

# ALChestButton API

NAOqi Sensors & LEDs - Overview | API

## Event list

- `ChestButtonPressed()`
- `ALChestButton/SimpleClickOccurred()`
- `ALChestButton/DoubleClickOccurred()`
- `ALChestButton/TripleClickOccurred()`

## Events

Event: `"ChestButtonPressed"`
callback(std::string eventName, float val, std::string subscriberIdentifier)

  Raised when the chest button is pressed.

  Parameters: | eventName (std::string) – “ChestButtonPressed” val – 1.0 if chest button is pressed. subscriberIdentifier (std::string) –

Event: `"ALChestButton/SimpleClickOccurred"`
callback(std::string eventName, std::string subscriberIdentifier)

  Raised when the chest button is pressed, i.e pressed and released.

Event: `"ALChestButton/DoubleClickOccurred"`
callback(std::string eventName, std::string subscriberIdentifier)

  Raised when the chest button is double-clicked, i.e pressed and released twice.

Event: `"ALChestButton/TripleClickOccurred"`
callback(std::string eventName, std::string subscriberIdentifier)

  Raised when the chest button is triple-clicked, i.e pressed and released thrice.

Glossary Site map Index Support Contact Legal Notices