DolphinWX: In Host_ConnectWiimote(), instead of calling CFrame::ConnectWiimote() directly, dispatch an event that will call it for us in the GUI thread.

This eliminates a possible stutter/short freeze that can happen during PowerPC::Pause().
This commit is contained in:
Admiral H. Curtiss
2015-07-16 02:00:56 +02:00
parent 5594b107eb
commit 935292c6fc
3 changed files with 38 additions and 1 deletions

View File

@ -298,6 +298,18 @@ enum
IDM_HOST_MESSAGE,
IDM_FULLSCREEN_REQUEST,
// Used for Host_ConnectWiimote()
IDM_FORCE_CONNECT_WIIMOTE1,
IDM_FORCE_CONNECT_WIIMOTE2,
IDM_FORCE_CONNECT_WIIMOTE3,
IDM_FORCE_CONNECT_WIIMOTE4,
IDM_FORCE_CONNECT_BALANCEBOARD,
IDM_FORCE_DISCONNECT_WIIMOTE1,
IDM_FORCE_DISCONNECT_WIIMOTE2,
IDM_FORCE_DISCONNECT_WIIMOTE3,
IDM_FORCE_DISCONNECT_WIIMOTE4,
IDM_FORCE_DISCONNECT_BALANCEBOARD,
IDM_MPANEL, ID_STATUSBAR,
IDM_FREELOOK_DECREASE_SPEED,