sensors.touch1.onEvent(TouchSensorEvent.Pressed, function () { }) sensors.touch2.onEvent(TouchSensorEvent.Bumped, function () { }) sensors.touch3.onEvent(TouchSensorEvent.Released, function () { }) sensors.touch4.isPressed(); sensors.touch4.wasPressed();