fix: Handle mouse button click/scroll events

This commit is contained in:
Michael Carlberg 2016-10-10 18:05:58 +02:00
parent 8af7388c93
commit c687b07cd0
10 changed files with 311 additions and 156 deletions
include/components

View file

@ -234,7 +234,7 @@ class parser {
} // }}}
mousebtn parse_action_btn(string data) { // {{{
if (isdigit(data[0] - '0'))
if (isdigit(data[0]))
return static_cast<mousebtn>(data[0] - '0');
else if (!m_actions.empty())
return static_cast<mousebtn>(m_actions.back());