Quote:
|
Originally Posted by Gusman1188
We played around with joysticks for a while trying to desensitize and the only way that we found effective is to just state something like the following
if (p1_y <= 135 && p1_y >= 127)
{
p1_y = 127;
}
if (p1_y >= 119 && p1_y <127)
{
p1_y = 127;
}
|
All this could be rewritten as one line:
if ((p1_y <= 135 && p1_y >= 127) || (p1_y >= 119 && p1_y <= 127)) p1_y = 127;