Loading ...
Sorry, an error occurred while loading the content.

how do i fake a working cursor?

Expand Messages
  • steltenpower
    I m trying to develop a dartgame: http://svgopen.steltenpower.com/darts.php But of course there s no fun in just clicking somewhere to represent hitting the
    Message 1 of 1 , Dec 12, 2004
    • 0 Attachment
      I'm trying to develop a dartgame:
      http://svgopen.steltenpower.com/darts.php

      But of course there's no fun in just clicking somewhere to represent
      hitting the board with a dart in that place.
      Therefore i try to model a shaky hand with a fake cursor.
      This fake cursor should be a time-varying random (but limited)
      translation away from the real (but hidden) cursor.

      But now the problem: when i click, the event that is fired has the
      location of the hidden real cursor. And cause evt.clientX and
      evt.clientY are read-only i can't set them to the values of the fake
      cursor.

      How do i do this?

      //I've seen some very dry spec stuff about creating a new event but
      couldn't get it to work.
    Your message has been successfully submitted and would be delivered to recipients shortly.