Mouse input is consumed, and click events cannot be triggered.

I created two cursor styles and then changed the cursor style when the mouse was pressed. However, when I clicked a button in the game interface, the cursor style didn’t change. It seems that the input was consumed, causing the mouse press event not to trigger. What should I do?

I’m using enhanced input that changes the cursor style when the mouse is pressed and released. I discovered using string printing that when I click on a button control in the game interface, there’s no mouse press input at all.