Converting analog to digital

I'll repeat myself but you understand that if you use map() you'll get 0 most of the time and depending on how good the input is, you might never get exactly 1023 and thus never get 1 ?

I would go for the comparison then you have way more control (and it's probably faster than map)

const int threshold1 = 512;
const int threshold2 = 448;
...

digitalWrite(outpin1, (analogRead(A0) > threshold1) ? HIGH : LOW);
digitalWrite(outpin2, (analogRead(A1) > threshold2) ? HIGH : LOW);

you get to have different threshold if needed (depending on your joystick or whatever is connected which might be biased )