Author Topic: doit mouse position checking  (Read 1924 times)

0 Members and 1 Guest are viewing this topic.

Rob

  • Guest
doit mouse position checking
« on: March 09, 2003, 07:37:12 PM »
Is there a way to repeatedly obtain the mouses x and y positions in (method (doit))?



Offline Brian Provinciano

Re:doit mouse position checking
« Reply #1 on: March 09, 2003, 09:29:58 PM »
You can create temporary event objects and use the GetEvent kernel to obtain all the current info (mouse button, x, y, key, etc.). There are also many other ways of obtaining the info. The titlescreen.sc script for example, checks if you click or press a key.

I will post some more tutorials including a solution to your question when I get back. I'll be back Tuesday and then start writing them.

Rob

  • Guest
Re:doit mouse position checking
« Reply #2 on: March 10, 2003, 12:49:51 PM »
Thank you, because doing

(method (doit)
  (var hEvent)
  = hEvent (Event:new())
)

works but seems to override the regular Eventhandler that controls the mouse and keyboard actions.


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.021 seconds with 17 queries.