They made it 'painfully' obvious/clear that we were not welcome. [=they made it very clear in a way that was rude or upsetting that we were not welcome]
His ankle is swollen and 'painful to the touch'. [=his ankle hurts if he touches it]
After the injury she was 'painfully' aware that her career in tennis would be over.
(..) I would stake my whole twenty year professional career - - on the fact that this is not a forgery, - - but is Mr. Smith's own signature. This is a very painful duty for me. This boy is the son of my best friend. I sponsored him in the Senate. I helped him frame his bill. On the day he presented it, (..)1939 Mr. Smith Goes to Washington