I'm sorry that you had to experience that depressive episode, but don't worry; everyone gets them sometimes.
When I was really bad off with anxiety and depression, I had no motivation to do anything. I couldn't sleep, eat, do hobbies, and even my grades were suffering. This lasted for almost a year. But, as time went on, things became easier, and telling myself that things would be okay actually became truth to me.
Nowadays, art, video games, and animals can really cheer me up after a bad day. It's different for everyone, but you need to find that one thing that you can call your own that can truly make you smile. And to me, it seems you've already done that with enjoying the warmth and affection of others; you're taking an awesome step towards positivity.
So, from personal experience, I wanna give some advice to you: live in the present. Do things for you, because you deserve to feel true happiness. And don't give up hope that things will get better because, even if that reality seems miles away, it will happen.
Sounds like cliché stuff, but it's the truth, through and through^^