fix: Handle mouse button click/scroll events
This commit is contained in:
parent
8af7388c93
commit
c687b07cd0
10 changed files with 311 additions and 156 deletions
include/components
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue