Adds a virtual input driver that collapses inputs into a single input device. Thanks to @macromorgan.

This commit is contained in:
fewtarius 2024-01-11 11:39:25 +00:00
parent 0be6d0f25a
commit c015df0782
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A
3 changed files with 30 additions and 1 deletions

View 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
}

View file

@ -0,0 +1,9 @@
[Unit]
Description=Virtual Gamepad Driver
[Service]
Type=simple
ExecStart=/usr/bin/virtualgamepad
[Install]
WantedBy=multi-user.target

View file

@ -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}"