added port of CapTouch.cpp
added timeoutCount variable initialisation in constructor