April 26, 2024, 06:23:55 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


mousedown

Started by yujinwunz, December 28, 2008, 06:10:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

yujinwunz

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?