Fetching details from the dictionary...

frustrated (over a failure, humiliation or injustice); annoyed; chagrined; (bitterly) disappointed; bitter; vexed; frustrating; annoying; regrettable
試合に負けてしまい本当に悔しかった。
I was frustrated to lose the match.
悔しい思いをバネに頑張った。
I worked hard using my frustration as motivation.
悔しくて思わず涙が出てきた。
Tears came out involuntarily from frustration.