Send BTN_LEFT with sendkey for mouse buttons #36
Merged
+323
−173
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
$ fusuma-sendkey -l | grep -i BTN_ BTN_0 BTN_1 BTN_2 BTN_3 BTN_4 BTN_5 BTN_6 BTN_7 BTN_8 BTN_9 BTN_LEFT BTN_RIGHT BTN_MIDDLE BTN_SIDE BTN_EXTRA BTN_FORWARD BTN_BACK BTN_TASK