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

# Reacting to an event: bumper

<< return to C++ examples

NAOqi framework allows event-based programming: it is possible to define a callback function on an event. This callback function will be called each time the event is raised.

In this section, we will demonstrate how to implement a callback function on a simple event, raised when the right bumper is pressed.

- Principle
- Example code: Bumper module

Glossary Site map Index Support Contact Legal Notices