2023-04-02 16:10:13 +02:00
|
|
|
/* Mouse bindings
|
2023-05-14 00:21:16 +02:00
|
|
|
* See LICENSE file for copyright and license details.
|
2023-04-02 16:10:13 +02:00
|
|
|
*/
|
|
|
|
|
2023-06-02 18:37:51 +02:00
|
|
|
/* Only applies to X11 */
|
2023-06-05 17:16:26 +02:00
|
|
|
#if USEX
|
2023-04-02 16:10:13 +02:00
|
|
|
static Mouse buttons[] = {
|
2023-06-02 18:37:51 +02:00
|
|
|
{ ClickInput, Button1, clear, {0} },
|
|
|
|
{ ClickPrompt, Button1, clear, {0} },
|
|
|
|
{ ClickMode, Button1, switchmode, {0} },
|
|
|
|
{ ClickNumber, Button1, viewhist, {0} },
|
|
|
|
{ ClickSelItem, Button1, NULL, {0} },
|
2023-07-15 15:55:15 +02:00
|
|
|
{ ClickNone, Button5, movenext, {0} },
|
|
|
|
{ ClickNone, Button4, moveprev, {0} },
|
2023-04-02 16:10:13 +02:00
|
|
|
};
|
2023-06-05 17:16:26 +02:00
|
|
|
#endif
|
2023-06-02 18:37:51 +02:00
|
|
|
|
|
|
|
/* Only applies to Wayland */
|
|
|
|
#if USEWAYLAND
|
2023-06-05 17:16:26 +02:00
|
|
|
static WlMouse wl_buttons[] = {
|
2023-06-02 18:37:51 +02:00
|
|
|
{ ClickInput, WL_Left, clear, {0} },
|
|
|
|
{ ClickPrompt, WL_Left, clear, {0} },
|
|
|
|
{ ClickMode, WL_Left, switchmode, {0} },
|
|
|
|
{ ClickNumber, WL_Left, viewhist, {0} },
|
|
|
|
{ ClickSelItem, WL_Left, NULL, {0} },
|
2023-07-15 17:27:31 +02:00
|
|
|
{ ClickNone, WL_Down, movenext, {0} },
|
|
|
|
{ ClickNone, WL_Up, moveprev, {0} },
|
2023-06-02 18:37:51 +02:00
|
|
|
};
|
|
|
|
#endif
|