How to get camera button event?

Sir,
i’m coding with opencv 454. i need help with get my camera hardware button event