Skip to content

Commit

Permalink
feat: Add SDL database AntiMicroX#323
Browse files Browse the repository at this point in the history
Loading mappings from database, eliminates need for manual button mapping (in most cases)
  • Loading branch information
pktiuk authored Dec 22, 2021
2 parents ca6c174 + f86192c commit daaccd5
Show file tree
Hide file tree
Showing 5 changed files with 1,178 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,12 @@ if(WITH_TESTS)
add_subdirectory(tests)
endif(WITH_TESTS)

# install SDL database
if(UNIX)
install(FILES share/gamecontrollerdb_linux.txt DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/antimicrox/" RENAME gamecontrollerdb.txt)
elseif(WIN32)
install(FILES share/gamecontrollerdb_windows.txt DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/antimicrox/" RENAME gamecontrollerdb.txt)
endif(UNIX)

###############################
# PACKAGES BUILDING WITH CPACK
Expand Down
Loading

0 comments on commit daaccd5

Please sign in to comment.