diff options
author | Alwin Esch <alwin.esch@web.de> | 2019-07-19 13:01:24 +0200 |
---|---|---|
committer | Alwin Esch <alwin.esch@web.de> | 2019-07-19 13:01:24 +0200 |
commit | ca0d578a214b09b7f6bfab095da155a270aaa778 (patch) | |
tree | b51f8d77d2fbc603282131239a35bea2a71c113a | |
parent | cc2a7c8d2a2fd27cd6a3b770add146db793c34cd (diff) |
add ACTION_MOUSE_DRAG_END support
This action is required on webbrowser addon to handle mouse drag and drop
on website content.
-rw-r--r-- | system/keymaps/mouse.xml | 1 | ||||
-rw-r--r-- | xbmc/input/actions/ActionIDs.h | 1 | ||||
-rw-r--r-- | xbmc/input/actions/ActionTranslator.cpp | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/system/keymaps/mouse.xml b/system/keymaps/mouse.xml index 85b184d769..3bb3f43826 100644 --- a/system/keymaps/mouse.xml +++ b/system/keymaps/mouse.xml @@ -38,6 +38,7 @@ <wheeldown>wheeldown</wheeldown> <wheelup>wheelup</wheelup> <mousedrag>mousedrag</mousedrag> + <mousedragend>mousedragend</mousedragend> <mousemove>mousemove</mousemove> </mouse> </global> diff --git a/xbmc/input/actions/ActionIDs.h b/xbmc/input/actions/ActionIDs.h index 9fd9d800a1..2ca1a554aa 100644 --- a/xbmc/input/actions/ActionIDs.h +++ b/xbmc/input/actions/ActionIDs.h @@ -132,6 +132,7 @@ #define ACTION_MOUSE_DRAG 106 #define ACTION_MOUSE_MOVE 107 #define ACTION_MOUSE_LONG_CLICK 108 +#define ACTION_MOUSE_DRAG_END 109 #define ACTION_MOUSE_END 109 #define ACTION_BACKSPACE 110 diff --git a/xbmc/input/actions/ActionTranslator.cpp b/xbmc/input/actions/ActionTranslator.cpp index de8fb98b44..9a9f624c92 100644 --- a/xbmc/input/actions/ActionTranslator.cpp +++ b/xbmc/input/actions/ActionTranslator.cpp @@ -224,6 +224,7 @@ static const std::map<ActionName, ActionID> ActionMappings = { "wheelup" , ACTION_MOUSE_WHEEL_UP }, { "wheeldown" , ACTION_MOUSE_WHEEL_DOWN }, { "mousedrag" , ACTION_MOUSE_DRAG }, + { "mousedragend" , ACTION_MOUSE_DRAG_END }, { "mousemove" , ACTION_MOUSE_MOVE }, // Touch |