Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Dec 2002
    Posts
    109
    Thanks
    0
    Thanked 0 Times in 0 Posts

    if left mouse button is down (n00b)

    could someone quick show me how to write a conditional javascript function that queries the current state of left mouse button when the function is called.

    you'd think even a noob would know this but i've never actually used it before, and i cant seem to find the answer.

    THANKS!
    seldom ruined but by myself

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can't check the current status of a mouse button but you can be informed when it changes and maintain that status yourself.

    Detecting Mouse Button state
    Check out the Forum Search. It's the short path to getting great results from this forum.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •