diff options
author | Amanda Graven <amanda@graven.dev> | 2023-11-28 21:05:33 +0100 |
---|---|---|
committer | Amanda Graven <amanda@graven.dev> | 2023-12-18 21:24:27 +0100 |
commit | 428edcde7068ab44040e19b43343741e5ca59770 (patch) | |
tree | 6ee0350184b6e5c60a94e4df8c8c3c14316086e4 /src/nvim/os | |
parent | 3a4aa3fc58f87a295a075fe457bc78805eef7c4d (diff) | |
download | rneovim-428edcde7068ab44040e19b43343741e5ca59770.tar.gz rneovim-428edcde7068ab44040e19b43343741e5ca59770.tar.bz2 rneovim-428edcde7068ab44040e19b43343741e5ca59770.zip |
feat(api): add forward and back mouse buttons
Diffstat (limited to 'src/nvim/os')
-rw-r--r-- | src/nvim/os/input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c index 5b759e9d1e..ed4267dcbb 100644 --- a/src/nvim/os/input.c +++ b/src/nvim/os/input.c @@ -311,7 +311,8 @@ static uint8_t check_multiclick(int code, int grid, int row, int col) } // For click events the number of clicks is updated. - if (code == KE_LEFTMOUSE || code == KE_RIGHTMOUSE || code == KE_MIDDLEMOUSE) { + if (code == KE_LEFTMOUSE || code == KE_RIGHTMOUSE || code == KE_MIDDLEMOUSE + || code == KE_X1MOUSE || code == KE_X2MOUSE) { uint64_t mouse_time = os_hrtime(); // time of current mouse click (ns) // compute the time elapsed since the previous mouse click and // convert p_mouse from ms to ns |