Touch Sensor

sensors.touch1.onEvent(ButtonEvent.Pressed, function () {
    brick.showImage(images.expressionsBigSmile)
})
sensors.touch1.isPressed();
sensors.touch1.wasPressed();

See Also

on Event, is pressed, was pressed