all repos — mgba @ 8345e29798f8e22ce0e0053ff62d08d61dce36fa

mGBA Game Boy Advance Emulator

SDL: Attach rumble in SDL frontend
Jeffrey Pfau jeffrey@endrift.com
Sun, 25 Sep 2016 21:16:23 -0700
commit

8345e29798f8e22ce0e0053ff62d08d61dce36fa

parent

3cfdad192c2e54ad6a94430008bf8f99c1c831cc

2 files changed, 5 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -17,6 +17,7 @@ - Core: Fix importing save games as read-only

- Util: Fix PNG identification on files too small to be a PNG - GB: Fix invalid STOP behavior on Game Boy Color - GB, GBA: Fix emulator hardlocking when halting with IRQs off + - SDL: Attach rumble in SDL frontend Misc: - All: Only update version info if needed - FFmpeg: Encoding cleanup
M src/platform/sdl/main.csrc/platform/sdl/main.c

@@ -138,6 +138,10 @@ mSDLEventsLoadConfig(&renderer.events, mCoreConfigGetInput(&renderer.core->config));

mSDLAttachPlayer(&renderer.events, &renderer.player); mSDLPlayerLoadConfig(&renderer.player, mCoreConfigGetInput(&renderer.core->config)); +#if SDL_VERSION_ATLEAST(2, 0, 0) + renderer.core->setRumble(renderer.core, &renderer.player.rumble.d); +#endif + int ret; // TODO: Use opts and config