-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from kodi-game/retroplayer
Controller translation and udev support from RetroPlayer branch
- Loading branch information
Showing
59 changed files
with
3,006 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# - try to find the udev library | ||
# | ||
# Cache Variables: (probably not for direct use in your scripts) | ||
# UDEV_INCLUDE_DIR | ||
# UDEV_SOURCE_DIR | ||
# UDEV_LIBRARY | ||
# | ||
# Non-cache variables you might use in your CMakeLists.txt: | ||
# UDEV_FOUND | ||
# UDEV_INCLUDE_DIRS | ||
# UDEV_LIBRARIES | ||
# | ||
# Requires these CMake modules: | ||
# FindPackageHandleStandardArgs (known included with CMake >=2.6.2) | ||
# | ||
# Original Author: | ||
# 2014 Kevin M. Godby <[email protected]> | ||
# | ||
# Distributed under the Boost Software License, Version 1.0. | ||
# (See accompanying file LICENSE_1_0.txt or copy at | ||
# http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
set(UDEV_ROOT_DIR | ||
"${UDEV_ROOT_DIR}" | ||
CACHE | ||
PATH | ||
"Directory to search for udev") | ||
|
||
find_package(PkgConfig QUIET) | ||
if(PKG_CONFIG_FOUND) | ||
pkg_check_modules(PC_LIBUDEV libudev) | ||
endif() | ||
|
||
find_library(UDEV_LIBRARY | ||
NAMES | ||
udev | ||
PATHS | ||
${PC_LIBUDEV_LIBRARY_DIRS} | ||
${PC_LIBUDEV_LIBDIR} | ||
HINTS | ||
"${UDEV_ROOT_DIR}" | ||
PATH_SUFFIXES | ||
lib | ||
) | ||
|
||
get_filename_component(_libdir "${UDEV_LIBRARY}" PATH) | ||
|
||
find_path(UDEV_INCLUDE_DIR | ||
NAMES | ||
libudev.h | ||
PATHS | ||
${PC_LIBUDEV_INCLUDE_DIRS} | ||
${PC_LIBUDEV_INCLUDEDIR} | ||
HINTS | ||
"${_libdir}" | ||
"${_libdir}/.." | ||
"${UDEV_ROOT_DIR}" | ||
PATH_SUFFIXES | ||
include | ||
) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(UDEV | ||
DEFAULT_MSG | ||
UDEV_LIBRARY | ||
UDEV_INCLUDE_DIR | ||
) | ||
|
||
if(UDEV_FOUND) | ||
list(APPEND UDEV_LIBRARIES ${UDEV_LIBRARY}) | ||
list(APPEND UDEV_INCLUDE_DIRS ${UDEV_INCLUDE_DIR}) | ||
mark_as_advanced(UDEV_ROOT_DIR) | ||
endif() | ||
|
||
mark_as_advanced(UDEV_INCLUDE_DIR | ||
UDEV_LIBRARY) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...al.joystick/resources/buttonmaps/xml/cocoa/Wireless_360_Controller_v045E_p028E_15b_6a.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
161 changes: 161 additions & 0 deletions
161
...tick/resources/buttonmaps/xml/udev/Xbox_360_Wireless_Receiver_XBOX_v045E_p0291_15b_6a.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
<?xml version="1.0" ?> | ||
<buttonmap> | ||
<device name="Xbox 360 Wireless Receiver (XBOX)" provider="udev" vid="045E" pid="0291" buttoncount="15" axiscount="6"> | ||
<controller id="game.controller.default"> | ||
<feature name="a" button="0" /> | ||
<feature name="b" button="1" /> | ||
<feature name="back" button="6" /> | ||
<feature name="down" button="14" /> | ||
<feature name="guide" button="8" /> | ||
<feature name="left" button="11" /> | ||
<feature name="leftbumper" button="4" /> | ||
<feature name="leftmotor" motor="0" /> | ||
<feature name="leftstick"> | ||
<up axis="-1" /> | ||
<down axis="+1" /> | ||
<right axis="+0" /> | ||
<left axis="-0" /> | ||
</feature> | ||
<feature name="leftthumb" button="9" /> | ||
<feature name="lefttrigger" axis="+2" /> | ||
<feature name="right" button="12" /> | ||
<feature name="rightbumper" button="5" /> | ||
<feature name="rightmotor" motor="1" /> | ||
<feature name="rightstick"> | ||
<up axis="-4" /> | ||
<down axis="+4" /> | ||
<right axis="+3" /> | ||
<left axis="-3" /> | ||
</feature> | ||
<feature name="rightthumb" button="10" /> | ||
<feature name="righttrigger" axis="+5" /> | ||
<feature name="start" button="7" /> | ||
<feature name="up" button="13" /> | ||
<feature name="x" button="2" /> | ||
<feature name="y" button="3" /> | ||
</controller> | ||
<controller id="game.controller.dreamcast"> | ||
<feature name="a" button="0" /> | ||
<feature name="analogstick"> | ||
<up axis="-1" /> | ||
<down axis="+1" /> | ||
<right axis="+0" /> | ||
<left axis="-0" /> | ||
</feature> | ||
<feature name="b" button="1" /> | ||
<feature name="down" button="14" /> | ||
<feature name="left" button="11" /> | ||
<feature name="lefttrigger" axis="+2" /> | ||
<feature name="right" button="12" /> | ||
<feature name="righttrigger" axis="+5" /> | ||
<feature name="start" button="7" /> | ||
<feature name="up" button="13" /> | ||
<feature name="x" button="2" /> | ||
<feature name="y" button="3" /> | ||
</controller> | ||
<controller id="game.controller.gba"> | ||
<feature name="a" button="0" /> | ||
<feature name="b" button="1" /> | ||
<feature name="down" button="14" /> | ||
<feature name="left" button="11" /> | ||
<feature name="leftbumper" button="4" /> | ||
<feature name="right" button="12" /> | ||
<feature name="rightbumper" button="5" /> | ||
<feature name="select" button="6" /> | ||
<feature name="start" button="7" /> | ||
<feature name="up" button="13" /> | ||
</controller> | ||
<controller id="game.controller.genesis"> | ||
<feature name="a" button="0" /> | ||
<feature name="b" button="1" /> | ||
<feature name="c" button="5" /> | ||
<feature name="down" button="14" /> | ||
<feature name="left" button="11" /> | ||
<feature name="mode" button="6" /> | ||
<feature name="right" button="12" /> | ||
<feature name="start" button="7" /> | ||
<feature name="up" button="13" /> | ||
<feature name="x" button="2" /> | ||
<feature name="y" button="3" /> | ||
<feature name="z" button="4" /> | ||
</controller> | ||
<controller id="game.controller.n64"> | ||
<feature name="a" button="0" /> | ||
<feature name="analogstick"> | ||
<up axis="-1" /> | ||
<down axis="+1" /> | ||
<right axis="+0" /> | ||
<left axis="-0" /> | ||
</feature> | ||
<feature name="b" button="1" /> | ||
<feature name="cdown" axis="+4" /> | ||
<feature name="cleft" axis="-3" /> | ||
<feature name="cright" axis="+3" /> | ||
<feature name="cup" axis="-4" /> | ||
<feature name="down" button="14" /> | ||
<feature name="left" button="11" /> | ||
<feature name="leftbumper" button="4" /> | ||
<feature name="right" button="12" /> | ||
<feature name="rightbumper" button="5" /> | ||
<feature name="start" button="7" /> | ||
<feature name="up" button="13" /> | ||
<feature name="z" axis="+5" /> | ||
</controller> | ||
<controller id="game.controller.nes"> | ||
<feature name="a" button="0" /> | ||
<feature name="b" button="1" /> | ||
<feature name="down" button="14" /> | ||
<feature name="left" button="11" /> | ||
<feature name="right" button="12" /> | ||
<feature name="select" button="6" /> | ||
<feature name="start" button="7" /> | ||
<feature name="up" button="13" /> | ||
</controller> | ||
<controller id="game.controller.ps"> | ||
<feature name="circle" button="1" /> | ||
<feature name="cross" button="0" /> | ||
<feature name="down" button="14" /> | ||
<feature name="l3" button="9" /> | ||
<feature name="left" button="11" /> | ||
<feature name="leftbumper" button="4" /> | ||
<feature name="leftstick"> | ||
<up axis="-1" /> | ||
<down axis="+1" /> | ||
<right axis="+0" /> | ||
<left axis="-0" /> | ||
</feature> | ||
<feature name="lefttrigger" axis="+2" /> | ||
<feature name="r3" button="10" /> | ||
<feature name="right" button="12" /> | ||
<feature name="rightbumper" button="5" /> | ||
<feature name="rightstick"> | ||
<up axis="-4" /> | ||
<down axis="+4" /> | ||
<right axis="+3" /> | ||
<left axis="-3" /> | ||
</feature> | ||
<feature name="righttrigger" axis="+5" /> | ||
<feature name="select" button="6" /> | ||
<feature name="square" button="2" /> | ||
<feature name="start" button="7" /> | ||
<feature name="strongmotor" motor="0" /> | ||
<feature name="triangle" button="3" /> | ||
<feature name="up" button="13" /> | ||
<feature name="weakmotor" motor="1" /> | ||
</controller> | ||
<controller id="game.controller.snes"> | ||
<feature name="a" button="0" /> | ||
<feature name="b" button="1" /> | ||
<feature name="down" button="14" /> | ||
<feature name="left" button="11" /> | ||
<feature name="leftbumper" button="4" /> | ||
<feature name="right" button="12" /> | ||
<feature name="rightbumper" button="5" /> | ||
<feature name="select" button="6" /> | ||
<feature name="start" button="7" /> | ||
<feature name="up" button="13" /> | ||
<feature name="x" button="2" /> | ||
<feature name="y" button="3" /> | ||
</controller> | ||
</device> | ||
</buttonmap> |
Oops, something went wrong.