summaryrefslogtreecommitdiff
path: root/plugins/dfinput
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-10-30 09:31:02 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-10-30 09:31:02 +0000
commit0b461b4c836f6a95d858f81c216b264e3e3e58e5 (patch)
tree9173c0a7001570831119d1514354c0e894851942 /plugins/dfinput
parent057e9df5a6e5f3a541c2c673944849082c0f8ae0 (diff)
downloadpcsxr-0b461b4c836f6a95d858f81c216b264e3e3e58e5.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@34009 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfinput')
-rw-r--r--plugins/dfinput/pad.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/dfinput/pad.h b/plugins/dfinput/pad.h
index 9b71fab0..de63db69 100644
--- a/plugins/dfinput/pad.h
+++ b/plugins/dfinput/pad.h
@@ -108,22 +108,22 @@ typedef struct tagConfig {
} CONFIG;
typedef struct tagPadState {
- SDL_Joystick *JoyDev;
- uint8_t PadMode;
- uint8_t PadID;
- uint16_t KeyStatus;
- uint16_t JoyKeyStatus;
- uint8_t AnalogStatus[ANALOG_TOTAL][2]; // 0-255 where 128 is center position
+ SDL_Joystick *JoyDev;
+ uint8_t PadMode;
+ uint8_t PadID;
+ volatile uint16_t KeyStatus;
+ volatile uint16_t JoyKeyStatus;
+ volatile uint8_t AnalogStatus[ANALOG_TOTAL][2]; // 0-255 where 128 is center position
} PADSTATE;
typedef struct tagGlobalData {
- CONFIG cfg;
+ CONFIG cfg;
- uint8_t Opened;
- Display *Disp;
+ uint8_t Opened;
+ Display *Disp;
- PADSTATE PadState[2];
- long KeyLeftOver;
+ PADSTATE PadState[2];
+ volatile long KeyLeftOver;
} GLOBALDATA;
extern GLOBALDATA g;