CodePudding user response:
Look at what you use set of UI libraryAnd then see how the response of the corresponding UI processing
Use is UGUI, I see the UIButton implementation after his rewriting a
Then the keyboard or handle the response of the oneself do a manager manages state, the mouse response that can be obtained through UGUI callback
As for how to unified state may be the more disgusting things point
Anyway, I didn't do is unified, because I have no this demand