setTouchMode in C++