aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/plugin.c2
-rw-r--r--frontend/plugin_lib.c3
-rw-r--r--frontend/plugin_lib.h2
3 files changed, 4 insertions, 3 deletions
diff --git a/frontend/plugin.c b/frontend/plugin.c
index 8914519..6bb9aa4 100644
--- a/frontend/plugin.c
+++ b/frontend/plugin.c
@@ -73,7 +73,7 @@ static long PADreadPort2(PadDataS *pad) {
pad->controllerType = in_type[pad_index];
pad->buttonStatus = ~in_keystate[pad_index];
- if (multitap2 ==1 )
+ if (multitap2 == 1)
pad->portMultitap = 2;
else
pad->portMultitap = 0;
diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c
index ad2f49b..c65bfeb 100644
--- a/frontend/plugin_lib.c
+++ b/frontend/plugin_lib.c
@@ -43,7 +43,8 @@ int in_analog_left[8][2] = {{ 127, 127 },{ 127, 127 },{ 127, 127 },{ 127, 127 },
int in_analog_right[8][2] = {{ 127, 127 },{ 127, 127 },{ 127, 127 },{ 127, 127 },{ 127, 127 },{ 127, 127 },{ 127, 127 },{ 127, 127 }};
int in_adev[2] = { -1, -1 }, in_adev_axis[2][2] = {{ 0, 1 }, { 0, 1 }};
int in_adev_is_nublike[2];
-int in_keystate, in_state_gun;
+unsigned short in_keystate[8];
+int in_state_gun;
int in_enable_vibration;
void *tsdev;
void *pl_vout_buf;
diff --git a/frontend/plugin_lib.h b/frontend/plugin_lib.h
index ad27fc2..83b2774 100644
--- a/frontend/plugin_lib.h
+++ b/frontend/plugin_lib.h
@@ -23,7 +23,7 @@ extern int multitap1;
extern int multitap2;
extern int in_analog_left[8][2];
extern int in_analog_right[8][2];
-unsigned short in_keystate[8];
+extern unsigned short in_keystate[8];
extern int in_adev[2], in_adev_axis[2][2];
extern int in_adev_is_nublike[2];