Be Developers: Put your banner here!
Developing for BeOS BeOS Internals
GetMouse(...)
For example:
while(xyz) {GetMouse(&a_point etc...); snooze(X microseconds);}
As a rule of thumb, polling about 50 times a second (i.e., every 20,000 +/- microseconds) seems about right.