Adds a virtual input driver that collapses inputs into a single input device. Thanks to @macromorgan.
This commit is contained in:
parent
0be6d0f25a
commit
c015df0782
3 changed files with 30 additions and 1 deletions
20
packages/emulators/tools/virtualgamepad/package.mk
Normal file
20
packages/emulators/tools/virtualgamepad/package.mk
Normal file
|
@ -0,0 +1,20 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
||||
|
||||
PKG_NAME="virtualgamepad"
|
||||
PKG_VERSION="a6e8459"
|
||||
PKG_LICENSE="GPLv2"
|
||||
PKG_SITE="https://github.com/macromorgan/input-wrapper"
|
||||
PKG_URL="${PKG_SITE}.git"
|
||||
PKG_DEPENDS_TARGET="toolchain linux"
|
||||
PKG_TOOLCHAIN="make"
|
||||
|
||||
makeinstall_target() {
|
||||
mkdir -p ${INSTALL}/usr/bin
|
||||
cp wrap ${INSTALL}/usr/bin/virtualgamepad
|
||||
chmod 0755 ${INSTALL}/usr/bin/virtualgamepad
|
||||
}
|
||||
|
||||
post_install() {
|
||||
enable_service virtualgamepad.service
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Virtual Gamepad Driver
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/virtualgamepad
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -7,7 +7,7 @@ PKG_SITE="www.jelos.org"
|
|||
PKG_SECTION="virtual"
|
||||
PKG_LONGDESC="Game support software metapackage."
|
||||
|
||||
PKG_GAMESUPPORT="sixaxis gptokeyb jstest-sdl gamecontrollerdb sdljoytest control-gen"
|
||||
PKG_GAMESUPPORT="sixaxis gptokeyb jstest-sdl gamecontrollerdb sdljoytest control-gen virtualgamepad"
|
||||
|
||||
PKG_DEPENDS_TARGET="${PKG_GAMESUPPORT}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue