Suspect system reboot with multiple mouse
MisterXYZ83 opened this issue · 0 comments
Hello!
I've used MG to solve a problem with my arcade game. I'd need to setup two lightguns for various emulators and i would like to use wiimotes. MG is the perfect solution for my gaming problem.
I modified the source code in order to create two additional keyboard-mouse output slots (slot_manager.cpp) and used the redirect for wm1 and wm2 devices:
wm1.wm_ir_x = redirect(left_x,keyboard1)
wm1.wm_ir_y = redirect(left_y,keyboard1)
wm2.wm_ir_x = redirect(left_x,keyboard2)
wm2.wm_ir_y = redirect(left_y,keyboard2)
This solved my problem, i could virtualize IR interfaces of both wiimotes as two mouses and the game works like a charme.
The problem arises here....after few minutes of gaming the system crashes systematically. Only when i use MG with this configuration and only inside a game; the system doesn't crash even the two wiimotes are configured as above.
To give more details, the system crashes inside the game (i tried two games, same behavior) only if i move the wiimotes. I tried to configure and power off the IR bar so no IR events are sent and the system is stable.
I think something about memory leak or event write race condition caused by my code modification.
Is it possible? @jgeumlek could you help me? If you need more info i can attach my slot_manager.cpp source code.
Thanks