mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Fixed an issue where touch input was not logged correctly
This commit is contained in:
parent
c27ee24cc4
commit
ba7874b0e7
|
@ -28,6 +28,8 @@ std::string InputConfig::inputTypeToString(InputType type)
|
|||
return "button";
|
||||
case TYPE_KEY:
|
||||
return "key";
|
||||
case TYPE_TOUCH:
|
||||
return "touch-button";
|
||||
case TYPE_CEC_BUTTON:
|
||||
return "cec-button";
|
||||
default:
|
||||
|
@ -43,6 +45,8 @@ InputType InputConfig::stringToInputType(const std::string& type)
|
|||
return TYPE_BUTTON;
|
||||
if (type == "key")
|
||||
return TYPE_KEY;
|
||||
if (type == "touch-button")
|
||||
return TYPE_TOUCH;
|
||||
if (type == "cec-button")
|
||||
return TYPE_CEC_BUTTON;
|
||||
return TYPE_COUNT;
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
#include <vector>
|
||||
|
||||
#define DEVICE_KEYBOARD -1
|
||||
#define DEVICE_TOUCH -2
|
||||
#define DEVICE_CEC -3
|
||||
#define DEVICE_CEC -2
|
||||
#define DEVICE_TOUCH -3
|
||||
|
||||
enum InputType {
|
||||
TYPE_AXIS,
|
||||
|
@ -83,6 +83,10 @@ public:
|
|||
stream << "Key " << SDL_GetKeyName((SDL_Keycode)id);
|
||||
break;
|
||||
}
|
||||
case TYPE_TOUCH: {
|
||||
stream << "Button " << id;
|
||||
break;
|
||||
}
|
||||
case TYPE_CEC_BUTTON: {
|
||||
stream << "CEC-Button " << getCECButtonName(id);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue