#include "minimal.h"
+extern uint8 Exit; // exit emu loop
extern int swapbuttons;
extern int scaled_display;
extern int FSkip_setting;
-extern void SetVideoScaling(int pixels,int width,int height);
-
/* UsrInputType[] is user-specified. InputType[] is current
void FCEUD_UpdateInput(void)
{
long lastpad2=lastpad;
- unsigned long pad=gp2x_joystick_read();
+ unsigned long pad=gp2x_joystick_read(1); // TODO: USB joys and stuff
uint32 JS=0;
#define down(b) (pad & GP2X_##b)
//FCEUI_SetSoundVolume(soundvol);
setsoundvol(soundvol);
}
+ else if (down(VOL_DOWN) && down(VOL_UP))
+ {
+ Exit = 1;
+ }
if (shift)
{
if (scaled_display)
{
- SetVideoScaling(320, 256, 240);
+ gp2x_video_RGB_setscaling(0, 256, 240);
}
else
{
- SetVideoScaling(320, 320, 240);
+ gp2x_video_RGB_setscaling(0, 320, 240);
}
goto no_pad;