* (Bugfix): padx_last_key_single_pressed was being checked AFTER checking pads connected, so it was never calculated if, for example, pad 2 was disconnected. This was only reproducible under real hardware.
This commit is contained in:
parent
e778deb2c0
commit
0cfdfaf959
|
@ -22,7 +22,7 @@ PATH := $(PATH):$(PSXSDK_PATH)/bin/
|
|||
PROJECT_DIR = ~/$(PROJECT)
|
||||
|
||||
#Uncomment this DEFINE below to use Airport together with OpenSend + QPSXSerial toolchain.
|
||||
#DEFINE += -DSERIAL_INTERFACE
|
||||
DEFINE += -DSERIAL_INTERFACE
|
||||
|
||||
# PSXSDK tools definitions
|
||||
# ELF2EXE:
|
||||
|
|
|
@ -313,6 +313,7 @@ bool UpdatePads(void)
|
|||
{
|
||||
unsigned short adc_mouse;
|
||||
static unsigned short old_adc_mouse;
|
||||
bool both_pads_connected = true;
|
||||
|
||||
PadOneVibrationHandler();
|
||||
|
||||
|
@ -344,12 +345,12 @@ bool UpdatePads(void)
|
|||
|
||||
if(PadOneConnected() == false)
|
||||
{
|
||||
return false;
|
||||
both_pads_connected = false;
|
||||
}
|
||||
|
||||
if(PadTwoConnected() == false)
|
||||
{
|
||||
return false;
|
||||
both_pads_connected = false;
|
||||
}
|
||||
|
||||
if(!(previous_pad1 & pad1) )
|
||||
|
@ -370,7 +371,7 @@ bool UpdatePads(void)
|
|||
pad2_last_key_single_pressed = 0;
|
||||
}
|
||||
|
||||
return true;
|
||||
return both_pads_connected;
|
||||
}
|
||||
|
||||
bool PadOneKeyReleased(unsigned short key)
|
||||
|
|
Loading…
Reference in New Issue