Monday, July 11, 2022
HomeGame DevelopmentLearn how to get ModifierState with Eventkeyboard in cocos creator 3.5.2? -...

Learn how to get ModifierState with Eventkeyboard in cocos creator 3.5.2? – Cocos Creator


Good day,
I’m focusing one downside with EventKeyboard in cocos creator 3.5.2.
I can get keycode for Enter.EventType(KEY_DOWN, KEY_PRESSING, KEY_UP).
I must verify if capslock is on or off.
How can I do it in cocos creator 3.5.2?

Plainly it’s potential to register SystemEvent to cocos Occasion through the use of enter object.
However, I’m not certain the way it works.

Finest Regards


sure, you may attempt to get ModifierState from KeyboardEvent

Thank very a lot in your assist.
It’s potential with KeyboardEvent.
However, it appears keyboardEvent is deprecated from cocos creator 3.4.
As an alternative of, EventKeyboard is supported.
How can I exploit KeyboardEvent in cocos creator 3.5.2?
Finest Regards

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments