Skip to content

Commit

Permalink
osc: add mouse mid-button as alias to shift+left button
Browse files Browse the repository at this point in the history
  • Loading branch information
wiiaboo authored and wm4 committed Sep 21, 2019
1 parent cdad5cc commit ffe8941
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions player/lua/osc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2488,6 +2488,9 @@ mp.set_key_bindings({
function(e) process_event("shift+mbtn_left", "down") end},
{"mbtn_right", function(e) process_event("mbtn_right", "up") end,
function(e) process_event("mbtn_right", "down") end},
-- alias to shift_mbtn_left for single-handed mouse use
{"mbtn_mid", function(e) process_event("shift+mbtn_left", "up") end,
function(e) process_event("shift+mbtn_left", "down") end},
{"wheel_up", function(e) process_event("wheel_up", "press") end},
{"wheel_down", function(e) process_event("wheel_down", "press") end},
{"mbtn_left_dbl", "ignore"},
Expand Down

0 comments on commit ffe8941

Please sign in to comment.