This pull request adds mouse button operations to the sendkey command. With this change, operating mouse buttons will be similar to operating keyboard keys.
Details of Changes
Mouse button operations (e.g., BTN_LEFT, BTN_RIGHT, BTN_MIDDLE) have been added to fusuma-sendkey.
The functionalities in the Keyboard class have been extended to handle mouse button operations.
Test cases for keyboard and mouse button operations have been added.
Notes
Mouse button operations are available only when mouse buttons are implemented on the keyboard.
Available mouse buttons can be checked with the command fusuma-sendkey -l | grep BTN_.
A virtual keyboard using uinput (e.g., fusuma-plugin-remap) will likely be needed.
Usage Example
It is important to note that you need to specify the mouse button with the prefix BTN_ as shown below.
---
context:
thumbsense: true
remap:
F: BTN_LEFT # <- remaps to left click using fusuma-plugin-remap
# fusuma-plugin-remap already supports mouse button operations.
E:
sendkey: LEFTCTRL+BTN_LEFT # <- sends left click with left control key using fusuma-plugin-sendkey
# This PR adds mouse button operations to the `sendkey` command.
In command line, following command can be executed to test the feature.
Overview
This pull request adds mouse button operations to the
sendkey
command. With this change, operating mouse buttons will be similar to operating keyboard keys.Details of Changes
BTN_LEFT
,BTN_RIGHT
,BTN_MIDDLE
) have been added tofusuma-sendkey
.Keyboard
class have been extended to handle mouse button operations.Notes
fusuma-sendkey -l | grep BTN_
.Usage Example
It is important to note that you need to specify the mouse button with the prefix
BTN_
as shown below.In command line, following command can be executed to test the feature.