Last active
May 1, 2021 06:11
-
-
Save kkosuge/cc7476f082068963e809d8242e52c281 to your computer and use it in GitHub Desktop.
Changing mouse motion to scroll when the left mouse button is pressed in UHK Trackpoint module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Configurations for UHK Trackpoint module", | |
"rules": [ | |
{ | |
"description": "pointing_button(button1) to enable mouse_motion_to_scroll", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"pointing_button": "button1", | |
"modifiers": { | |
"optional": ["any"] | |
} | |
}, | |
"parameters": { | |
"basic.to_if_held_down_threshold_milliseconds": 100 | |
}, | |
"to": [ | |
{ | |
"pointing_button": "button1" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"set_variable": { | |
"name": "enable_mouse_motion_to_scroll", | |
"value": 1 | |
} | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "enable_mouse_motion_to_scroll", | |
"value": 0 | |
} | |
} | |
] | |
}, | |
{ | |
"type": "mouse_motion_to_scroll", | |
"from": { | |
"modifiers": { | |
"optional": ["any"] | |
} | |
}, | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "enable_mouse_motion_to_scroll", | |
"value": 1 | |
} | |
], | |
"options": { | |
"speed_multiplier": 0.5 | |
} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment