Yes, I think you have it right, now.
I’m actually surprised about your listed definitions because as a native english speaker, those definitions seem definitively wrong to me, as desperation means exactly that you haven’t quite yet given up hope even though the situation is dire. “Desperate” is like an intense kind of desire, which in my mind is the opposite of hopelessness.