Fix mouse control

This commit is contained in:
dijunkun
2023-10-09 15:05:10 +08:00
parent ea2f5d319d
commit cb4648ce72
3 changed files with 67 additions and 39 deletions

View File

@@ -175,8 +175,8 @@ inline int ProcessMouseKeyEven(SDL_Event &ev) {
SendData(peer, DATA_TYPE::DATA, (const char *)&remote_action,
sizeof(remote_action));
// std::cout << remote_action.type << " " << remote_action.type << " "
// << remote_action.px << " " << remote_action.py << std::endl;
std::cout << remote_action.type << " " << remote_action.m.flag << " "
<< remote_action.m.x << " " << remote_action.m.y << std::endl;
return 0;
}