[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Detecting mouse in TML Pascal II
Answering my own question, and to potential programmer: it is quite
easy after reading through TML Basic (!) source code, then try them in
TML Pascal. :)
- declare a variable of Point type (mouse: Point)
- getMouse(mouse) will put the coordinate into mouse
- mouse.h will return X coordinate
- mouse.v will return Y coordinate.
The question is now how to detect key press? Or 2nd mouse button?
I will post my own finding here if I got any good result. Any help
appreciated.