onepad: fix a couple of ccpcheck warning

Yes I know formating suck
This commit is contained in:
Gregory Hainaut 2016-08-12 22:25:03 +02:00
parent 61eddca39d
commit 2d8a0dc59c
5 changed files with 6 additions and 5 deletions

View File

@ -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;

View File

@ -624,7 +624,7 @@ void Dialog::config_key(int pad, int key)
m_map_images[pad][key_pressed] = key;
captured = true;
}
itjoy++;
++itjoy;
}
}
}

View File

@ -81,7 +81,7 @@ void _PADclose()
while (it != s_vgamePad.end())
{
delete *it;
it ++;
++it;
}
s_vgamePad.clear();

View File

@ -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());

View File

@ -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;