Block for receiving and handling touches in 2d applications