adb_usb: Add scroll wheel emulation #692
Squashed commit from: https://github.com/tmk/tmk_keyboard/pull/692
This commit is contained in:
parent
44bf879285
commit
9b58ee7db0
2 changed files with 42 additions and 11 deletions
|
|
@ -82,10 +82,26 @@ KEYMAP_SECTION_ENABLE ?= yes # fixed address keymap for keymap editor
|
|||
ADB_MOUSE_MAXACC ?= 8
|
||||
OPT_DEFS += -DADB_MOUSE_MAXACC=$(ADB_MOUSE_MAXACC)
|
||||
|
||||
# Enable scroll wheel functionality using the y-axis of the mouse
|
||||
# Hold the assigned button down to scroll using the mouse
|
||||
#
|
||||
# Example:
|
||||
# Kensington Turbo Mouse 5
|
||||
# ________
|
||||
# middle click -> |3 __ 4| <- scroll toggle (browser back when disabled)
|
||||
# | / \ |
|
||||
# | \__/ |
|
||||
# left click -> |1 2| <- right click
|
||||
# |________|
|
||||
#
|
||||
ADB_MOUSE_SCROLL_BUTTON ?= 4 # Assign the button (1-8) (0 to disable)
|
||||
ADB_MOUSE_SCROLL_SPEED ?= 10 # 1 (fastest) to 127 (slowest)
|
||||
|
||||
# Optimize size but this may cause error "relocation truncated to fit"
|
||||
#EXTRALDFLAGS = -Wl,--relax
|
||||
|
||||
OPT_DEFS += -DADB_MOUSE_SCROLL_BUTTON=$(ADB_MOUSE_SCROLL_BUTTON)
|
||||
OPT_DEFS += -DADB_MOUSE_SCROLL_SPEED=$(ADB_MOUSE_SCROLL_SPEED)
|
||||
|
||||
#
|
||||
# Keymap file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue