munawarb / Treasure-Hunt

A top-down shooter audio game for the blind and visually impaired
GNU General Public License v3.0
8 stars 5 forks source link

Implement better rapid-fire control, remove hard-coded key constants, and handle only-press-once #6

Closed munawarb closed 5 years ago

munawarb commented 5 years ago

The hard-coded key constants should be removed from MainFRM_KeyDown and we should utilize the KeyEventArgs object properly to check for presses of modifiers and regular keys.

Also, KeyDown has no way at the moment of detecting first presses of keys and controlling rapid-fire. Every weapon should have its own fire rate.