![]() |
![]() |
![]() |
![]() |
![]() |
|
To recognize specific events, you arrange for the controlActivity
method to send various messages to a sensor extracted from the
corresponding controller instance using the sensor method. One
such message, redButtonPressed, answers true if the
left button is pressed at the time that the
redButtonPressed message is sent.