I've been having some problems with anxiety and depression the past year or so. I had to take a break from the university to get better. Althrough I never had a problem with motivation to code before (apart from the times I realised that I sucked ) now, having motivation and the will to do anything is extremely difficult.
I wanted to know, what does motivate you to code? Is it playing other video games? The project you're working on? Your work environment? The people you work with? All the problems that need cracking? Or simply, do you just think it's your work so you have to do it?