Index: winGraphicsWindow.cxx =================================================================== RCS file: /cvsroot/panda3d/panda/src/windisplay/winGraphicsWindow.cxx,v retrieving revision 1.110 diff -u -r1.110 winGraphicsWindow.cxx --- winGraphicsWindow.cxx 25 Jun 2010 21:46:54 -0000 1.110 +++ winGraphicsWindow.cxx 11 Aug 2010 14:07:22 -0000 @@ -2086,6 +2086,28 @@ _numTouches = MAX_TOUCHES; GetTouchInputInfo((HTOUCHINPUT)lparam, _numTouches, _touches, sizeof(TOUCHINPUT)); CloseTouchInputHandle((HTOUCHINPUT)lparam); + + for(int i=0; i<_numTouches; i++) + { + TouchInfo ti = get_touch_info(i); + throw_event("touch", + EventParameter(ti.get_id()), + EventParameter(ti.get_flags()), + EventParameter(ti.get_x()), + EventParameter(ti.get_y())); + if (windisplay_cat.is_spam()) { + windisplay_cat.spam()<< "WM_TOUCH "; + if (ti.get_flags() & TouchInfo::TIF_down) + { + windisplay_cat.spam() << "New touch started "; + } + else if (ti.get_flags() & TouchInfo::TIF_up) + { + windisplay_cat.spam() << "Touch ended "; + } + windisplay_cat.spam() << "x=" << ti.get_x() << " y=" << ti.get_y() << " id=" << ti.get_id() << "\n"; + } + } break; #endif }