Modify the header file as follows:
std::map<cocos2d::EventKeyboard::KeyCode, bool> keys; std::map<cocos2d::EventMouse::Event, bool> mouse;
Then assign values to the arrow keys of the keyboard and the left button of the mouse in the update function,
The assign values of the left key of the keyboard arrow keys is as follows:
auto leftArrow = EventKeyboard::KeyCode::KEY_LEFT_ARROW,
I don’t know how to assign the left button of the mouse. Below is the problematic code. How to modify it?