mirror of
https://github.com/libretro/pcsx2.git
synced 2024-12-14 05:38:51 +00:00
7985f5114c
I manage to have x/start button working with 0/1 key. Here the reference configuration. [General\ Settings] Force\ Cursor\ Hide=0 Mouse\ Unfocus=0 Background=0 Multiple\ Bindings=0 DirectInput\ Game\ Devices=0 XInput=0 DualShock\ 3=0 Multitap\ 1=0 Multitap\ 2=0 Escape\ Fullscreen\ Hack=0 Disable\ Screen\ Saver=0 Logging=0 Save\ State\ in\ Title=0 GH2=0 Turbo\ Key\ Hack=0 Vista\ Volume=0 Close\ Hacks=0 Keyboard\ Mode=16 Mouse\ Mode=0 Volume=0 [Pad\ 0\ 0] Mode=1 Auto\ Analog=0 [Pad\ 0\ 1] Mode=1 Auto\ Analog=0 [Pad\ 0\ 2] Mode=1 Auto\ Analog=0 [Pad\ 0\ 3] Mode=1 Auto\ Analog=0 [Pad\ 1\ 0] Mode=1 Auto\ Analog=0 [Pad\ 1\ 1] Mode=1 Auto\ Analog=0 [Pad\ 1\ 2] Mode=1 Auto\ Analog=0 [Pad\ 1\ 3] Mode=1 Auto\ Analog=0 [Device\ 0] Display\ Name=displayName Instance\ ID=instanceID Product\ ID=deviceID API=16 Type=1 Binding 0=0x00040030, 0, 31, 65536, 0, 0, 0 Binding 1=0x00040031, 0, 19, 65536, 0, 0, 0 Binding 2=0x00040002, 0, 50, 65536, 0, 0, 0 Binding 3=0x00040003, 0, 51, 65536, 0, 0, 0 Binding 4=0x00040004, 0, 52, 65536, 0, 0, 0 Binding 5=0x00040005, 0, 53, 65536, 0, 0, 0 Binding 6=0x00040006, 0, 54, 65536, 0, 0, 0 Binding 7=0x00040007, 0, 55, 65536, 0, 0, 0 Binding 8=0x00040008, 0, 56, 65536, 0, 0, 0 Binding 9=0x00040009, 0, 57, 65536, 0, 0, 0 Binding 10=0x0004000C, 0, 58, 65536, 0, 0, 0 Binding 11=0x0004000D, 0, 59, 65536, 0, 0, 0 Binding 12=0x0004000E, 0, 60, 65536, 0, 0, 0 Binding 13=0x0004000F, 0, 61, 65536, 0, 0, 0 Binding 14=0x00200010, 0, 62, 65536, 0, 0, 1 Binding 15=0x00200011, 0, 63, 65536, 0, 0, 1 Binding 16=0x01020012, 0, 33, 65536, 0, 0, 13172 Binding 17=0x02020012, 0, 35, 65536, 0, 0, 13172 Binding 18=0x02020014, 0, 39, 65536, 0, 0, 13172 Binding 19=0x02020015, 0, 38, 65536, 0, 0, 13172
303 lines
9.3 KiB
CMake
303 lines
9.3 KiB
CMake
#-------------------------------------------------------------------------------
|
|
# Dependency message print
|
|
#-------------------------------------------------------------------------------
|
|
set(msg_dep_common_libs "check these libraries -> wxWidgets (>=2.8.10), aio")
|
|
set(msg_dep_pcsx2 "check these libraries -> wxWidgets (>=2.8.10), gtk2 (>=2.16), zlib (>=1.2.4), pcsx2 common libs")
|
|
set(msg_dep_cdvdiso "check these libraries -> bzip2 (>=1.0.5), gtk2 (>=2.16)")
|
|
set(msg_dep_zerogs "check these libraries -> glew (>=1.6), opengl, X11, nvidia-cg-toolkit (>=2.1)")
|
|
set(msg_dep_gsdx "check these libraries -> opengl, egl, X11")
|
|
set(msg_dep_onepad "check these libraries -> sdl (>=1.2), X11")
|
|
set(msg_dep_spu2x "check these libraries -> soundtouch (>=1.5), alsa, portaudio (>=1.9), sdl (>=1.2) pcsx2 common libs")
|
|
set(msg_dep_zerospu2 "check these libraries -> soundtouch (>=1.5), alsa")
|
|
if(GLSL_API)
|
|
set(msg_dep_zzogl "check these libraries -> glew (>=1.6), jpeg (>=6.2), opengl, X11, pcsx2 common libs")
|
|
else(GLSL_API)
|
|
set(msg_dep_zzogl "check these libraries -> glew (>=1.6), jpeg (>=6.2), opengl, X11, nvidia-cg-toolkit (>=2.1), pcsx2 common libs")
|
|
endif()
|
|
|
|
#-------------------------------------------------------------------------------
|
|
# Pcsx2 core & common libs
|
|
#-------------------------------------------------------------------------------
|
|
# Check for additional dependencies.
|
|
# If all dependencies are available, including OS, build it
|
|
#-------------------------------------------------------------------------------
|
|
if (GTK2_FOUND OR GTK3_FOUND)
|
|
set(GTKn_FOUND TRUE)
|
|
else()
|
|
set(GTKn_FOUND FALSE)
|
|
endif()
|
|
|
|
if(SDL_FOUND OR SDL2_FOUND)
|
|
set(SDLn_FOUND TRUE)
|
|
else()
|
|
set(SDLn_FOUND FALSE)
|
|
endif()
|
|
|
|
#---------------------------------------
|
|
# Common libs
|
|
# requires: -wx
|
|
#---------------------------------------
|
|
if(wxWidgets_FOUND)
|
|
set(common_libs TRUE)
|
|
elseif(NOT EXISTS "${CMAKE_SOURCE_DIR}/common/src")
|
|
set(common_libs FALSE)
|
|
else()
|
|
set(common_libs FALSE)
|
|
message(STATUS "Skip build of common libraries: miss some dependencies")
|
|
message(STATUS "${msg_dep_common_libs}")
|
|
endif()
|
|
|
|
#---------------------------------------
|
|
# Pcsx2 core
|
|
# requires: -wx
|
|
# -gtk2 (linux)
|
|
# -zlib
|
|
# -common_libs
|
|
# -aio
|
|
#---------------------------------------
|
|
# Common dependancy
|
|
if(wxWidgets_FOUND AND ZLIB_FOUND AND common_libs AND NOT (Linux AND NOT AIO_FOUND))
|
|
set(pcsx2_core TRUE)
|
|
elseif(NOT EXISTS "${CMAKE_SOURCE_DIR}/pcsx2")
|
|
set(pcsx2_core FALSE)
|
|
else()
|
|
set(pcsx2_core FALSE)
|
|
message(STATUS "Skip build of pcsx2 core: miss some dependencies")
|
|
message(STATUS "${msg_dep_pcsx2}")
|
|
endif()
|
|
# Linux need also gtk2
|
|
if(UNIX AND pcsx2_core AND NOT GTKn_FOUND)
|
|
set(pcsx2_core FALSE)
|
|
message(STATUS "Skip build of pcsx2 core: miss some dependencies")
|
|
message(STATUS "${msg_dep_pcsx2}")
|
|
endif()
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
# Plugins
|
|
#-------------------------------------------------------------------------------
|
|
# Check all plugins for additional dependencies.
|
|
# If all dependencies of a plugin are available, including OS, the plugin will
|
|
# be build.
|
|
#-------------------------------------------------------------------------------
|
|
|
|
#---------------------------------------
|
|
# CDVDnull
|
|
#---------------------------------------
|
|
if(GTKn_FOUND)
|
|
set(CDVDnull TRUE)
|
|
endif()
|
|
#---------------------------------------
|
|
|
|
#---------------------------------------
|
|
# CDVDiso
|
|
#---------------------------------------
|
|
# requires: -BZip2
|
|
# -gtk2 (linux)
|
|
#---------------------------------------
|
|
if(EXTRA_PLUGINS)
|
|
if(BZIP2_FOUND AND GTKn_FOUND)
|
|
set(CDVDiso TRUE)
|
|
elseif(NOT EXISTS "${CMAKE_SOURCE_DIR}/plugins/CDVDiso")
|
|
set(CDVDiso FALSE)
|
|
else()
|
|
set(CDVDiso FALSE)
|
|
message(STATUS "Skip build of CDVDiso: miss some dependencies")
|
|
message(STATUS "${msg_dep_cdvdiso}")
|
|
endif()
|
|
endif()
|
|
|
|
#---------------------------------------
|
|
# CDVDlinuz
|
|
#---------------------------------------
|
|
if(EXTRA_PLUGINS)
|
|
set(CDVDlinuz TRUE)
|
|
endif()
|
|
|
|
#---------------------------------------
|
|
# dev9null
|
|
#---------------------------------------
|
|
if(GTKn_FOUND)
|
|
set(dev9null TRUE)
|
|
endif()
|
|
#---------------------------------------
|
|
|
|
#---------------------------------------
|
|
# FWnull
|
|
#---------------------------------------
|
|
if(GTKn_FOUND)
|
|
set(FWnull TRUE)
|
|
endif()
|
|
#---------------------------------------
|
|
|
|
#---------------------------------------
|
|
# GSnull
|
|
#---------------------------------------
|
|
if(GTKn_FOUND AND EXTRA_PLUGINS)
|
|
set(GSnull TRUE)
|
|
endif()
|
|
#---------------------------------------
|
|
|
|
#---------------------------------------
|
|
# GSdx
|
|
#---------------------------------------
|
|
# requires: -OpenGL
|
|
# -X11
|
|
#---------------------------------------
|
|
if(OPENGL_FOUND AND X11_FOUND AND EGL_FOUND AND GTKn_FOUND)
|
|
set(GSdx TRUE)
|
|
elseif(NOT EXISTS "${CMAKE_SOURCE_DIR}/plugins/GSdx")
|
|
set(GSdx FALSE)
|
|
else()
|
|
set(GSdx FALSE)
|
|
message(STATUS "Skip build of GSdx: miss some dependencies")
|
|
message(STATUS "${msg_dep_gsdx}")
|
|
endif()
|
|
#---------------------------------------
|
|
|
|
#---------------------------------------
|
|
# zerogs
|
|
#---------------------------------------
|
|
# requires: -GLEW
|
|
# -OpenGL
|
|
# -X11
|
|
# -CG
|
|
#---------------------------------------
|
|
if(EXTRA_PLUGINS)
|
|
if(GLEW_FOUND AND OPENGL_FOUND AND X11_FOUND AND CG_FOUND)
|
|
set(zerogs TRUE)
|
|
elseif(NOT EXISTS "${CMAKE_SOURCE_DIR}/plugins/zerogs")
|
|
set(zerogs FALSE)
|
|
else()
|
|
set(zerogs FALSE)
|
|
message(STATUS "Skip build of zerogs: miss some dependencies")
|
|
message(STATUS "${msg_dep_zerogs}")
|
|
endif()
|
|
endif()
|
|
#---------------------------------------
|
|
|
|
#---------------------------------------
|
|
# zzogl-pg
|
|
#---------------------------------------
|
|
# requires: -GLEW
|
|
# -OpenGL
|
|
# -X11
|
|
# -CG (only with cg build)
|
|
# -JPEG
|
|
# -common_libs
|
|
#---------------------------------------
|
|
if((GLEW_FOUND AND OPENGL_FOUND AND X11_FOUND AND JPEG_FOUND AND common_libs AND GTKn_FOUND) AND (CG_FOUND OR GLSL_API))
|
|
set(zzogl TRUE)
|
|
elseif(NOT EXISTS "${CMAKE_SOURCE_DIR}/plugins/zzogl-pg")
|
|
set(zzogl FALSE)
|
|
else()
|
|
set(zzogl FALSE)
|
|
message(STATUS "Skip build of zzogl: miss some dependencies")
|
|
message(STATUS "${msg_dep_zzogl}")
|
|
endif()
|
|
#---------------------------------------
|
|
|
|
#---------------------------------------
|
|
# PadNull
|
|
#---------------------------------------
|
|
if(GTKn_FOUND AND EXTRA_PLUGINS)
|
|
set(PadNull TRUE)
|
|
endif()
|
|
#---------------------------------------
|
|
|
|
#---------------------------------------
|
|
# LilyPad
|
|
# requires: -X11
|
|
#---------------------------------------
|
|
if(GTKn_FOUND AND X11_FOUND)
|
|
set(LilyPad TRUE)
|
|
endif()
|
|
#---------------------------------------
|
|
|
|
#---------------------------------------
|
|
# onepad
|
|
#---------------------------------------
|
|
# requires: -SDL
|
|
# -X11
|
|
#---------------------------------------
|
|
if(SDLn_FOUND AND X11_FOUND)
|
|
set(onepad TRUE)
|
|
elseif(NOT EXISTS "${CMAKE_SOURCE_DIR}/plugins/onepad")
|
|
set(onepad FALSE)
|
|
else()
|
|
set(onepad FALSE)
|
|
message(STATUS "Skip build of onepad: miss some dependencies")
|
|
message(STATUS "${msg_dep_onepad}")
|
|
endif()
|
|
#---------------------------------------
|
|
|
|
#---------------------------------------
|
|
# SPU2null
|
|
#---------------------------------------
|
|
if(GTKn_FOUND AND EXTRA_PLUGINS)
|
|
set(SPU2null TRUE)
|
|
endif()
|
|
#---------------------------------------
|
|
|
|
#---------------------------------------
|
|
# spu2-x
|
|
#---------------------------------------
|
|
# requires: -SoundTouch
|
|
# -ALSA
|
|
# -Portaudio
|
|
# -SDL
|
|
# -common_libs
|
|
#---------------------------------------
|
|
if(ALSA_FOUND AND PORTAUDIO_FOUND AND SOUNDTOUCH_FOUND AND SDLn_FOUND AND common_libs)
|
|
set(spu2-x TRUE)
|
|
elseif(NOT EXISTS "${CMAKE_SOURCE_DIR}/plugins/spu2-x")
|
|
set(spu2-x FALSE)
|
|
else()
|
|
set(spu2-x FALSE)
|
|
message(STATUS "Skip build of spu2-x: miss some dependencies")
|
|
message(STATUS "${msg_dep_spu2x}")
|
|
endif()
|
|
#---------------------------------------
|
|
|
|
#---------------------------------------
|
|
# zerospu2
|
|
#---------------------------------------
|
|
# requires: -SoundTouch
|
|
# -ALSA
|
|
# -PortAudio
|
|
#---------------------------------------
|
|
if(EXTRA_PLUGINS)
|
|
if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/zerospu2" AND SOUNDTOUCH_FOUND AND ALSA_FOUND)
|
|
set(zerospu2 TRUE)
|
|
# Comment the next line, if you want to compile zerospu2
|
|
set(zerospu2 FALSE)
|
|
message(STATUS "Don't build zerospu2. It is super-seeded by spu2x")
|
|
elseif(NOT EXISTS "${CMAKE_SOURCE_DIR}/plugins/zerospu2")
|
|
set(zerospu2 FALSE)
|
|
else()
|
|
set(zerospu2 FALSE)
|
|
message(STATUS "Skip build of zerospu2: miss some dependencies")
|
|
message(STATUS "${msg_dep_zerospu2}")
|
|
endif()
|
|
endif()
|
|
#---------------------------------------
|
|
|
|
#---------------------------------------
|
|
# USBnull
|
|
#---------------------------------------
|
|
if(GTKn_FOUND)
|
|
set(USBnull TRUE)
|
|
endif()
|
|
#---------------------------------------
|
|
|
|
#-------------------------------------------------------------------------------
|
|
# [TODO] Write CMakeLists.txt for these plugins.
|
|
set(cdvdGigaherz FALSE)
|
|
set(CDVDisoEFP FALSE)
|
|
set(CDVDolio FALSE)
|
|
set(CDVDpeops FALSE)
|
|
set(PeopsSPU2 FALSE)
|
|
set(SSSPSXPAD FALSE)
|
|
set(xpad FALSE)
|
|
#-------------------------------------------------------------------------------
|