mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
hid_mapper: update to 2.1.0
This commit is contained in:
parent
3dd7c0f03a
commit
6cfce2058d
@ -1,6 +1,6 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
# This file is part of LibreELEC - http://www.libreelec.tv
|
# This file is part of LibreELEC - https://libreelec.tv
|
||||||
# Copyright (C) 2016 Team LibreELEC
|
# Copyright (C) 2016-present Team LibreELEC
|
||||||
#
|
#
|
||||||
# LibreELEC is free software: you can redistribute it and/or modify
|
# LibreELEC is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -17,12 +17,11 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
PKG_NAME="hid_mapper"
|
PKG_NAME="hid_mapper"
|
||||||
PKG_VERSION="0"
|
PKG_VERSION="2.1.0"
|
||||||
PKG_ARCH="any"
|
PKG_ARCH="any"
|
||||||
PKG_LICENSE="GPL"
|
PKG_LICENSE="GPL"
|
||||||
PKG_SITE=""
|
PKG_SITE="https://github.com/s-leroux/hid_mapper"
|
||||||
PKG_URL="http://www.coldsource.net/hid_mapper.tar.gz"
|
PKG_URL="https://github.com/s-leroux/hid_mapper/archive/v${PKG_VERSION}.tar.gz"
|
||||||
PKG_SOURCE_DIR="${PKG_NAME}_beta"
|
|
||||||
PKG_DEPENDS_TARGET="toolchain"
|
PKG_DEPENDS_TARGET="toolchain"
|
||||||
PKG_SECTION="tools"
|
PKG_SECTION="tools"
|
||||||
PKG_SHORTDESC="generic HID mapper"
|
PKG_SHORTDESC="generic HID mapper"
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
diff --git a/MapReader.cpp b/MapReader.cpp
|
|
||||||
index e64b636..bd1ab68 100644
|
|
||||||
--- a/MapReader.cpp
|
--- a/MapReader.cpp
|
||||||
+++ b/MapReader.cpp
|
+++ b/MapReader.cpp
|
||||||
@@ -98,7 +98,10 @@ void MapReader::LoadMap(const char *filename,EventMapping *map)
|
@@ -106,7 +106,10 @@
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
while(i<KEY_NAME_MAXLENGTH && ptr[i]!='\0' && ptr[i]!='\n' && ptr[i]!=' ')
|
|
||||||
|
while(i<KEY_NAME_MAXLENGTH && ptr[i]!='\0' && ptr[i]!='\n' && (!isspace(ptr[i])))
|
||||||
- key_name[i] = ptr[i++];
|
- key_name[i] = ptr[i++];
|
||||||
+ {
|
+ {
|
||||||
+ key_name[i] = ptr[i];
|
+ key_name[i] = ptr[i];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user