mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-17 12:12:10 -04:00
More code for mouse-trail logging
This commit is contained in:
parent
7d50067686
commit
5abebf3e0f
@ -58,6 +58,16 @@ class DisplayRegion;
|
|||||||
// apply to a piece of geometry placed under the 2-d
|
// apply to a piece of geometry placed under the 2-d
|
||||||
// scene graph. It will move the geometry around
|
// scene graph. It will move the geometry around
|
||||||
// according to the mouse's known position.
|
// according to the mouse's known position.
|
||||||
|
//
|
||||||
|
// Finally, this class can keep a record of the mouse
|
||||||
|
// trail. This is useful if you want to know, not just
|
||||||
|
// where the mouse is, but the exact sequence of movements
|
||||||
|
// it took to get there. This information is mainly useful
|
||||||
|
// for gesture-recognition code. To use trail logging,
|
||||||
|
// you need to enable the generation of pointer events
|
||||||
|
// in the GraphicsWindowInputDevice and set the trail
|
||||||
|
// log duration in the MouseWatcher. Otherwise, the
|
||||||
|
// trail log will be empty.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
class EXPCL_PANDA_TFORM MouseWatcher : public DataNode, public MouseWatcherGroup {
|
class EXPCL_PANDA_TFORM MouseWatcher : public DataNode, public MouseWatcherGroup {
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user