From ab49ef89d073c433dfa45a884c5b67ee9478922f Mon Sep 17 00:00:00 2001 From: "baka0815.de" Date: Thu, 8 Nov 2018 09:02:25 +0100 Subject: [PATCH] SDL: Create the first controller with two VMUs --- core/sdl/sdl.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/sdl/sdl.cpp b/core/sdl/sdl.cpp index df5a494fd..9fd0c85b1 100644 --- a/core/sdl/sdl.cpp +++ b/core/sdl/sdl.cpp @@ -2,6 +2,8 @@ #include "types.h" #include "cfg/cfg.h" #include "linux-dist/main.h" +#include "hw/maple/maple_devs.h" +#include "hw/maple/maple_cfg.h" #include "sdl/sdl.h" #ifndef GLES #include "khronos/GL3/gl3w.h" @@ -92,6 +94,11 @@ void input_sdl_init() sdl_map_axis = sdl_map_axis_xbox360; printf("Using Xbox 360 map\n"); } + + // Create the first controller with two VMUs + // TODO: make this configurable + printf("SDL: Creating controller in first port with 2 VMUs"); + mcfg_CreateController(0, MDT_SegaVMU, MDT_SegaVMU); } else {