mirror of https://github.com/mgba-emu/mgba.git
SDL: Attach rumble in SDL frontend
This commit is contained in:
parent
3cfdad192c
commit
8345e29798
1
CHANGES
1
CHANGES
|
@ -17,6 +17,7 @@ Bugfixes:
|
||||||
- Util: Fix PNG identification on files too small to be a PNG
|
- Util: Fix PNG identification on files too small to be a PNG
|
||||||
- GB: Fix invalid STOP behavior on Game Boy Color
|
- GB: Fix invalid STOP behavior on Game Boy Color
|
||||||
- GB, GBA: Fix emulator hardlocking when halting with IRQs off
|
- GB, GBA: Fix emulator hardlocking when halting with IRQs off
|
||||||
|
- SDL: Attach rumble in SDL frontend
|
||||||
Misc:
|
Misc:
|
||||||
- All: Only update version info if needed
|
- All: Only update version info if needed
|
||||||
- FFmpeg: Encoding cleanup
|
- FFmpeg: Encoding cleanup
|
||||||
|
|
|
@ -138,6 +138,10 @@ int main(int argc, char** argv) {
|
||||||
mSDLAttachPlayer(&renderer.events, &renderer.player);
|
mSDLAttachPlayer(&renderer.events, &renderer.player);
|
||||||
mSDLPlayerLoadConfig(&renderer.player, mCoreConfigGetInput(&renderer.core->config));
|
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;
|
int ret;
|
||||||
|
|
||||||
// TODO: Use opts and config
|
// TODO: Use opts and config
|
||||||
|
|
Loading…
Reference in New Issue