Oculus quest 2 button events?

Can’t you use the approach discussed in the following topic?