sdl: disable touch input support by default
It looks like that the Android system gets confused when both a pointer and an touch based input device are connected to the system. As touch support is so far only used Ubports we can keep it disabled for the snap version but provide a configuration switch to enable it again.
This commit is contained in:
parent
37818f27f4
commit
348ff8a320
2 changed files with 21 additions and 3 deletions
|
|
@ -136,3 +136,8 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
|
|||
add_custom_target(uninstall "${CMAKE_COMMAND}"
|
||||
-P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
|
||||
|
||||
option(TOUCH_INPUT "Enable touch input support" OFF)
|
||||
if (TOUCH_INPUT)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_TOUCH_INPUT")
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue