He has OCD in that movie.
I'll add, people with OCD can have subtle social difficulties and eccentricities, and it's due to people with such hiding their compulsions and obsessions from others, hence they're "in their mind" more than the average social bear. It's not the same thing as the complete social retardation of ASDs.