Keyboard "IsPressed" check

Keyboard "IsPressed" check
0.0 0


I’m wondering if there is some implementation of

bool isPressed(EventKeyboard::KeyCode keyCode);

check on keyboard, or should it be specified using for example:

map _KeyboardChecker;

virtual void onKeyPressed(EventKeyboard::KeyCode keyCode, Event* event){
    _KeyboardChecker[keyCode] = true;

virtual void onKeyReleased(EventKeyboard::KeyCode keyCode, Event* event){
    _KeyboardChecker[keyCode] = false;

bool isPressed(EventKeyboard::KeyCode keyCode){ return _KeyboardChecker[keyCode];}

on class inheriting from layer?

If not, is it planned to be added?

I’m currently using the develop branch.

Hope I didn’t repeat question.