IonicWind Software

IWBasic => General Questions => Topic started by: yujinwunz on December 28, 2008, 06:10:36 PM

Title: mousedown
Post by: yujinwunz on December 28, 2008, 06:10:36 PM
Happy boxing day everyone.

In the user guide it says mousedown returns the current state of the button stated in the paramater.

however, in a game i am making a weapon is suppose to rapid-fire when the left mouse button is held down.
the game does this by checking the mouse status every frame at 60fps and shoots when mouse is down AND when reload has completed (every 10 frames)
instead, when i hold the mouse it fires once and you have to click again to fire again.

it works (as in it rapidfires) on previous versions of this game, where the program checks the status of the spacebar "KEYDOWN(DIK_SPACE)" instead of the mouse "MOUSEDOWN(1)"

i have a logitech optical wireless mouse with a USB interface.

does anyone know what is wrong?