aboutsummaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/Makefile2
-rw-r--r--Source/Pad.c7
2 files changed, 5 insertions, 4 deletions
diff --git a/Source/Makefile b/Source/Makefile
index 7393dd1..5b49052 100644
--- a/Source/Makefile
+++ b/Source/Makefile
@@ -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:
diff --git a/Source/Pad.c b/Source/Pad.c
index e68804b..8ea13dc 100644
--- a/Source/Pad.c
+++ b/Source/Pad.c
@@ -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)