www.webdeveloper.com
Results 1 to 2 of 2

Thread: Recognizing left/right mouse button clicks

Hybrid View

  1. #1
    Join Date
    Dec 2011
    Location
    Bucharest Romania
    Posts
    40

    Recognizing left/right mouse button clicks

    Hi,

    I have an educational site.
    I have some games, and I would like to create a game in which by positioning the mouse cursor over a box and clicking the left mouse button you get a different result than from clicking the right mouse button. This could also be done with the keyboard, of course, but it is easier to navigate a page using a mouse and then to use the same mouse for clicking.
    My question is Is it a good idea to differentiate the mouse buttons like this?
    I read that older browsers at leasr do not assign the same values for mouse buttons. Of course this could then be done on a browser to browser basis.
    So should I use mouse buttons or keys?

    Thanks
    Last edited by arrowthesparrow; 03-08-2013 at 01:54 AM.

  2. #2
    Join Date
    Dec 2012
    Location
    NSW Australia
    Posts
    73
    first you need to know your audience as much as possible.
    young, old, browsers used and whether they are people to use keys or mouses.

    I think you understand all that so you need to cater for all eventualities. problem is it will take foreva to accomplish your task so pick one and get it online and enhance later with the other if need be.

    as for browsers: they are close to standard now so that is less of a problem to what is was a few years back. Unless your audience uses mobile devices, then you will have a headache. nothing is impossible just takes longer.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles