pad mapping fix

This commit is contained in:
dborth 2009-10-28 00:11:43 +00:00
parent 16ec3c3e95
commit 8f52b71abc
2 changed files with 4 additions and 10 deletions

View File

@ -282,15 +282,9 @@ int main(int argc, char *argv[])
#endif #endif
MountAllFAT(); // Initialize libFAT for SD and USB MountAllFAT(); // Initialize libFAT for SD and USB
DefaultSettings(); // Set defaults DefaultSettings(); // Set defaults
// Audio
InitialiseAudio(); InitialiseAudio();
InitFreeType((u8*)font_ttf, font_ttf_size); // Initialize font system
// Initialize font system
InitFreeType((u8*)font_ttf, font_ttf_size);
InitGUIThreads(); InitGUIThreads();
// allocate memory to store rom // allocate memory to store rom

View File

@ -357,9 +357,9 @@ static unsigned char DecodeJoy(unsigned short chan)
unsigned char J = 0; unsigned char J = 0;
#ifdef HW_RVL #ifdef HW_RVL
s8 wm_ax = userInput[0].WPAD_StickX(0); s8 wm_ax = userInput[chan].WPAD_StickX(0);
s8 wm_ay = userInput[0].WPAD_StickY(0); s8 wm_ay = userInput[chan].WPAD_StickY(0);
u32 wp = userInput[0].wpad->btns_h; u32 wp = userInput[chan].wpad->btns_h;
u32 exp_type; u32 exp_type;
if ( WPAD_Probe(chan, &exp_type) != 0 ) exp_type = WPAD_EXP_NONE; if ( WPAD_Probe(chan, &exp_type) != 0 ) exp_type = WPAD_EXP_NONE;