few info would help: your joystick type, operating system
but first open your C:\Program Files\Ubisoft\IL-2 Sturmovik 1946\conf.ini file and in the [rts section] the "joyUse" parameter must be 1
to play online you need to install hyperlobby:
http://hyperfighter.sk/