Is there a way to observe two rectangles in a layout group to see what one got clicked?
I am extremely new to Roku development and I am trying to create a custom button (using a custom component) that extends rectangle. I have accomplished this and have also been able to manage the focusing by change the color of the focused rectangle. But I am now stuck on trying to manage the selection.
For example, when a rectangle has focus and the ok key is pressed, I want to do something, but I am not able to wrap my head around observing for when a rectangle is clicked on like we would normally do with the buttonGroup buttons. So what will be the best way or the way to perform an action on the focused rectangle?