Skip to content

Commit

Permalink
Explicitly define gamepad type for console platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCWills committed Jan 15, 2025
1 parent f7603b7 commit dbd5002
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMake/platforms/ps4.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set(UBSAN OFF)
SET(DISABLE_LTO ON)
set(NONET ON)
set(NOEXIT ON)
set(DEVILUTIONX_GAMEPAD_TYPE PlayStation)
set(BUILD_ASSETS_MPQ ON)

# Packbrew SDK provides SDL_image, but FindSDL2_image() fails to
Expand Down
1 change: 1 addition & 0 deletions CMake/platforms/switch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ set(DEVILUTIONX_SYSTEM_SDL_IMAGE OFF)
set(DEVILUTIONX_SYSTEM_LIBSODIUM OFF)
set(DISABLE_ZERO_TIER ON)
set(PREFILL_PLAYER_NAME ON)
set(DEVILUTIONX_GAMEPAD_TYPE Nintendo)
set(NOEXIT ON)

set(JOY_BUTTON_DPAD_LEFT 16)
Expand Down
1 change: 1 addition & 0 deletions CMake/platforms/vita.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set(DEVILUTIONX_SYSTEM_LIBSODIUM OFF)
set(BUILD_TESTING OFF)
set(DISABLE_ZERO_TIER ON)
set(PREFILL_PLAYER_NAME ON)
set(DEVILUTIONX_GAMEPAD_TYPE PlayStation)
set(NOEXIT ON)

list(APPEND DEVILUTIONX_PLATFORM_SUBDIRECTORIES platform/vita)
Expand Down

0 comments on commit dbd5002

Please sign in to comment.