From 86b69df9d516234b36ab8abc213f0f28094bb8a6 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Mon, 2 Nov 2009 11:10:33 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@34859 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/plugins/HIDInput/src/PlugPAD.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'macosx/plugins/HIDInput/src/PlugPAD.c') diff --git a/macosx/plugins/HIDInput/src/PlugPAD.c b/macosx/plugins/HIDInput/src/PlugPAD.c index c4f07eb2..73f0131f 100644 --- a/macosx/plugins/HIDInput/src/PlugPAD.c +++ b/macosx/plugins/HIDInput/src/PlugPAD.c @@ -3,10 +3,12 @@ #include "HID_Utilities.h" #include "PlugPAD.h" - ///////////////////////////////////////////////////////// typedef void* HWND; -#include "PSEmu_Plugin_Defs.h" +#include "psemu_plugin_defs.h" + +long DoConfiguration(); +void DoAbout(); const char *LibName = "HIDInput"; const int version = 0; @@ -100,7 +102,7 @@ long PADconfigure(void) { HIDBuildDeviceList(kHIDPage_GenericDesktop, 0); } } - + return DoConfiguration(); } @@ -153,23 +155,23 @@ long _readPortX(PadDataS *data, int port) buttonState &= ~(1 << keys[i].button); } } - + for (i=0; iusagePage == kHIDPage_GenericDesktop && axes[i].element->usage >= kHIDUsage_GD_X && axes[i].element->usage <= kHIDUsage_GD_Rz) { /* axis input device */ value = HIDCalibrateValue(value, axes[i].element); value = HIDScaleValue(value, axes[i].element); if (!axes[i].positive) value = 255-value; - + if (value >= 127) { if (axes[i].reverse) value = 255-value; - + switch (axes[i].axis) { case 0: data->rightJoyX = value; break; case 1: data->rightJoyY = value; break; -- cgit v1.2.3