mirror of https://github.com/PCSX2/pcsx2.git
onepad: fix a couple of ccpcheck warning
Yes I know formating suck
This commit is contained in:
parent
61eddca39d
commit
2d8a0dc59c
|
@ -27,6 +27,7 @@ void KeyStatus::Init()
|
|||
m_button[pad] = 0xFFFF;
|
||||
m_internal_button_kbd[pad] = 0xFFFF;
|
||||
m_internal_button_joy[pad] = 0xFFFF;
|
||||
m_state_acces[pad] = false;
|
||||
|
||||
for (int index = 0; index < MAX_KEYS; index++) {
|
||||
m_button_pressure[pad][index] = 0xFF;
|
||||
|
|
|
@ -624,7 +624,7 @@ void Dialog::config_key(int pad, int key)
|
|||
m_map_images[pad][key_pressed] = key;
|
||||
captured = true;
|
||||
}
|
||||
itjoy++;
|
||||
++itjoy;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -81,7 +81,7 @@ void _PADclose()
|
|||
while (it != s_vgamePad.end())
|
||||
{
|
||||
delete *it;
|
||||
it ++;
|
||||
++it;
|
||||
}
|
||||
|
||||
s_vgamePad.clear();
|
||||
|
|
|
@ -38,7 +38,7 @@ void JoystickInfo::UpdateReleaseState()
|
|||
while (itjoy != s_vgamePad.end())
|
||||
{
|
||||
(*itjoy)->SaveState();
|
||||
itjoy++;
|
||||
++itjoy;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,7 @@ void JoystickInfo::EnumerateJoysticks(vector<GamePad*>& vjoysticks)
|
|||
while (it != vjoysticks.end())
|
||||
{
|
||||
delete *it;
|
||||
it ++;
|
||||
++it;
|
||||
}
|
||||
|
||||
vjoysticks.resize(SDL_NumJoysticks());
|
||||
|
|
|
@ -183,7 +183,6 @@ u8 pad_poll(u8 value)
|
|||
return query.response[++query.lastByte];
|
||||
}
|
||||
|
||||
int i;
|
||||
Pad *pad = &pads[query.port][query.slot];
|
||||
|
||||
if (query.lastByte == 0) {
|
||||
|
@ -202,6 +201,7 @@ u8 pad_poll(u8 value)
|
|||
{
|
||||
query.response[2] = 0x5A;
|
||||
#if 0
|
||||
int i;
|
||||
Update(query.port, query.slot);
|
||||
ButtonSum *sum = &pad->sum;
|
||||
|
||||
|
|
Loading…
Reference in New Issue