mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-22 22:01:06 -06:00
start getting somewhere with that input config dialog
This commit is contained in:
@ -37,6 +37,9 @@ wxIMPLEMENT_APP(wxApp_melonDS);
|
||||
|
||||
bool wxApp_melonDS::OnInit()
|
||||
{
|
||||
// http://stackoverflow.com/questions/14543333/joystick-wont-work-using-sdl
|
||||
SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");
|
||||
|
||||
if (SDL_Init(SDL_INIT_EVERYTHING) < 0)
|
||||
{
|
||||
printf("SDL shat itself :(\n");
|
||||
@ -238,6 +241,10 @@ void MainFrame::ProcessSDLEvents()
|
||||
if (evt.key.keysym.scancode == Config::KeyMapping[10]) NDS::ReleaseKey(16);
|
||||
if (evt.key.keysym.scancode == Config::KeyMapping[11]) NDS::ReleaseKey(17);
|
||||
break;
|
||||
|
||||
case SDL_JOYBUTTONDOWN:
|
||||
printf("button %d %d\n", evt.jbutton.which, evt.jbutton.button);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user