summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-07-10 00:27:19 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-07-10 00:27:19 +0000
commitbde1f035c1b045f1ed3b678b5545d1de8fb5cd85 (patch)
treed82299b584e8ee1aef574df4cae267513fed4d52
parent7979d29592d2b268d621c60eee73eaca351a9d00 (diff)
downloadpcsxr-bde1f035c1b045f1ed3b678b5545d1de8fb5cd85.tar.gz
Define PADhandleKey in OS X's main.m file.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85952 e17a0e51-4ae3-4d35-97c3-1a29b211df97
-rwxr-xr-xmacosx/main.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/macosx/main.m b/macosx/main.m
index 7fd2b56c..5ed5619e 100755
--- a/macosx/main.m
+++ b/macosx/main.m
@@ -22,6 +22,8 @@ static BOOL sysInited = NO;
//#define EMU_LOG
static IOPMAssertionID powerAssertion = kIOPMNullAssertionID;
+void PADhandleKey(int key);
+
static void LoadEmuLog()
{
if (emuLog == NULL) {
@@ -227,8 +229,8 @@ void SysCloseLibrary(void *lib) {
// Called periodically from the emu thread
void SysUpdate() {
#if 0
- PADhandleKey(PAD1_keypressed());
- PADhandleKey(PAD2_keypressed());
+ PADhandleKey(PAD1_keypressed() & 0xffffffff);
+ PADhandleKey(PAD2_keypressed() & 0xffffffff);
#else
PAD1_keypressed();
PAD2_keypressed();