|
|
@@ -432,6 +432,7 @@ void Win32Core::handleKeyUp(LPARAM lParam, WPARAM wParam) {
|
|
|
unlockMutex(eventMutex);
|
|
|
}
|
|
|
|
|
|
+#ifndef NO_TOUCH_API
|
|
|
void Win32Core::handleTouchEvent(LPARAM lParam, WPARAM wParam) {
|
|
|
|
|
|
// Bail out now if multitouch is not available on this system
|
|
|
@@ -490,6 +491,7 @@ void Win32Core::handleTouchEvent(LPARAM lParam, WPARAM wParam) {
|
|
|
}
|
|
|
unlockMutex(eventMutex);
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
void Win32Core::handleMouseMove(LPARAM lParam, WPARAM wParam) {
|
|
|
lockMutex(eventMutex);
|
|
|
@@ -809,7 +811,9 @@ void Win32Core::shutdownGamepad() {
|
|
|
}
|
|
|
|
|
|
void Win32Core::initTouch() {
|
|
|
-
|
|
|
+#ifdef NO_TOUCH_API
|
|
|
+ hasMultiTouch = false;
|
|
|
+#else
|
|
|
// Check for windows multitouch support at runtime
|
|
|
// This could be done easily during preprocessing but would require building
|
|
|
// multiple releases of polycode for both winxp/vista and win7
|
|
|
@@ -818,7 +822,7 @@ void Win32Core::initTouch() {
|
|
|
// If the above multitouch functions were found, then set a flag so we don't
|
|
|
// have to check again later
|
|
|
hasMultiTouch = ( GetTouchInputInfoFunc == NULL ) ? false : true;
|
|
|
-
|
|
|
+#endif
|
|
|
}
|
|
|
|
|
|
|