Compare commits
No commits in common. "e2955f029d85a0af8ff213776bc7fb2cccf114db" and "27151cf7a567ee52fba898c55ebcc9628594d5f7" have entirely different histories.
e2955f029d
...
27151cf7a5
2 changed files with 5 additions and 14 deletions
|
|
@ -18,8 +18,8 @@ pub const mouse = struct {
|
|||
pub const BUTTON3: Mouse = vaxis.Mouse.Button.right;
|
||||
pub const BUTTON4: Mouse = vaxis.Mouse.Button.wheel_up;
|
||||
pub const BUTTON5: Mouse = vaxis.Mouse.Button.wheel_down;
|
||||
pub const BUTTON6: Mouse = vaxis.Mouse.Button.wheel_right;
|
||||
pub const BUTTON7: Mouse = vaxis.Mouse.Button.wheel_left;
|
||||
// pub const BUTTON6: Mouse = vaxis.Mouse.Button.button_6;
|
||||
// pub const BUTTON7: Mouse = vaxis.Mouse.Button.button_7;
|
||||
pub const BUTTON8: Mouse = vaxis.Mouse.Button.button_8;
|
||||
pub const BUTTON9: Mouse = vaxis.Mouse.Button.button_9;
|
||||
pub const BUTTON10: Mouse = vaxis.Mouse.Button.button_10;
|
||||
|
|
@ -323,12 +323,13 @@ pub const utils = struct {
|
|||
mouse.BUTTON3 => "button3",
|
||||
mouse.BUTTON4 => "button4",
|
||||
mouse.BUTTON5 => "button5",
|
||||
mouse.BUTTON6 => "button6",
|
||||
mouse.BUTTON7 => "button7",
|
||||
// mouse.BUTTON6 => "button6",
|
||||
// mouse.BUTTON7 => "button7",
|
||||
mouse.BUTTON8 => "button8",
|
||||
mouse.BUTTON9 => "button9",
|
||||
mouse.BUTTON10 => "button10",
|
||||
mouse.BUTTON11 => "button11",
|
||||
else => "",
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -6488,8 +6488,6 @@ pub const EditorWidget = struct {
|
|||
input.mouse.BUTTON3 => &mouse_click_button3,
|
||||
input.mouse.BUTTON4 => &mouse_click_button4,
|
||||
input.mouse.BUTTON5 => &mouse_click_button5,
|
||||
input.mouse.BUTTON6 => &mouse_click_button6,
|
||||
input.mouse.BUTTON7 => &mouse_click_button7,
|
||||
input.mouse.BUTTON8 => &mouse_click_button8, //back
|
||||
input.mouse.BUTTON9 => &mouse_click_button9, //forward
|
||||
else => return,
|
||||
|
|
@ -6570,14 +6568,6 @@ pub const EditorWidget = struct {
|
|||
try self.editor.scroll_down_pagedown(.{});
|
||||
}
|
||||
|
||||
fn mouse_click_button6(self: *Self, _: c_int, _: c_int, _: c_int, _: c_int) Result {
|
||||
try self.editor.move_scroll_left(.{});
|
||||
}
|
||||
|
||||
fn mouse_click_button7(self: *Self, _: c_int, _: c_int, _: c_int, _: c_int) Result {
|
||||
try self.editor.move_scroll_right(.{});
|
||||
}
|
||||
|
||||
fn mouse_click_button8(_: *Self, _: c_int, _: c_int, _: c_int, _: c_int) Result {
|
||||
try command.executeName("jump_back", .{});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue