diff --git a/src/main/wii/SDL_wii_main.c b/src/main/wii/SDL_wii_main.c index ec6329d5f023a..80bbbf54b088f 100644 --- a/src/main/wii/SDL_wii_main.c +++ b/src/main/wii/SDL_wii_main.c @@ -38,7 +38,6 @@ #include #include #include -#include #include static void ShutdownCB() @@ -73,7 +72,6 @@ int main(int argc, char *argv[]) WPAD_SetVRes(WPAD_CHAN_ALL, 640, 480); MOUSE_Init(); - KEYBOARD_Init(NULL); fatInitDefault(); /* Call the user's main function. Make sure that argv contains at least one diff --git a/src/video/ogc/SDL_ogcvideo.c b/src/video/ogc/SDL_ogcvideo.c index 5653700f738c3..a99077beb9e48 100644 --- a/src/video/ogc/SDL_ogcvideo.c +++ b/src/video/ogc/SDL_ogcvideo.c @@ -41,6 +41,7 @@ #include #include #include +#include #include @@ -315,6 +316,8 @@ int OGC_VideoInit(_THIS) #ifdef __wii__ OGC_InitMouse(_this); + /* OGC_PumpEvents reads the keyboard, so we need to initialize it here */ + KEYBOARD_Init(NULL); #endif return 0; }