What does ‘cock-eyed’ mean?

( adj ) Crazy, cockamamie. A solar-powered flashlight? What kind of cock-eyed idea is that?