Add reverse scrolling mode to the Pimoroni Trackball module
Signed-off-by: Salvatore La Bua <slabua@gmail.com>
This commit is contained in:
@@ -32,7 +32,8 @@ trackball = Trackball(i2c, mode=TrackballMode.MOUSE_MODE, handlers=[
|
||||
KeyHandler(KC.UP, KC.RIGHT, KC.DOWN, KC.LEFT, KC.ENTER),
|
||||
# on layer 1 and above use the default pointing behavior
|
||||
PointingHandler(),
|
||||
ScrollHandler()
|
||||
# use scrolling='natural' (default) or 'reverse' to change the scrolling direction
|
||||
ScrollHandler(scrolling='natural')
|
||||
])
|
||||
|
||||
# now you can use these KeyCodes:
|
||||
|
Reference in New Issue
Block a user