Skip to content

Commit

Permalink
onepad: add a game controller db resource
Browse files Browse the repository at this point in the history
It will be used later by the SDL2 API
  • Loading branch information
gregory38 committed Apr 28, 2017
1 parent d3a3a85 commit 873ae67
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/onepad/CMakeLists.txt
Expand Up @@ -49,6 +49,7 @@ set(onepadSources
keyboard.cpp
KeyStatus.cpp
onepad.cpp
resources.cpp
state_management.cpp)

# onepad headers
Expand All @@ -60,6 +61,7 @@ set(onepadHeaders
keyboard.h
KeyStatus.h
onepad.h
resources.h
state_management.h)

# onepad Linux sources
Expand Down Expand Up @@ -118,6 +120,11 @@ foreach(result_file IN ITEMS
COMMAND perl ${CMAKE_SOURCE_DIR}/linux_various/hex2h.pl "${image_sources}/${result_file}.png" "${compiled_images}/${result_file}" )
endforeach()

set(RESOURCE_FILES res/game_controller_db.txt)

add_custom_glib_res("resources" "onepad-res.xml" "onepad_res" ${RESOURCE_FILES})


if(BUILTIN_PAD)
add_pcsx2_lib(${Output} "${onepadFinalSources}" "${onepadFinalLibs}" "${onepadFinalFlags}")
else()
Expand Down

0 comments on commit 873ae67

Please sign in to comment.