either you have the button mapped wrong in the game, or your stick button that is mapped is either crapping out, or is programmed as a "press" and not a "press and release".
There is nothing wrong with the HTC code, other wise there would be all kinds of complaints on these boards.
Check and make sure your stick is programmed correctly, and then check the mapping in the game.