You probably just need a shift in mindset. I had for the longest time, pursued passions based on being unfulfilled with either stuff I was consuming or producing. But over time I realized doing stuff out of frustration, ennui, or as you put it, sadness, doesn't benefit in terms of long term results, happiness, and overall mental health.
I would suggest reflecting on what makes you want to do stuff, because I'm definitely sure it's not your emotional state that's really driving your motivation. Something more that's related to it. Introspection can go a long way in fixing these kinds of issues, but of course it's going to take a lot of time and work.
Hope this helps. Good luck!