Add Windows Photoshop & Illustrator hotkeys (untested)

This commit is contained in:
Phillip Burgess 2021-07-26 13:34:51 -07:00
parent 0408ef3954
commit ee8c100cd0
2 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,29 @@
# MACROPAD Hotkeys example: Adobe Illustrator for Windows
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
app = { # REQUIRED dict, must be named 'app'
'name' : 'Illustrator', # Application name
'macros' : [ # List of button macros...
# COLOR LABEL KEY SEQUENCE
# 1st row ----------
(0x004000, 'Undo', [Keycode.CONTROL, 'z']),
(0x004000, 'Redo', [Keycode.CONTROL, 'Z']),
(0x303000, 'Pen', 'p'), # Path-drawing tool
# 2nd row ----------
(0x101010, 'Select', 'v'), # Select (path)
(0x400000, 'Reflect', 'o'), # Reflect selection
(0x303000, 'Rect', 'm'), # Draw rectangle
# 3rd row ----------
(0x101010, 'Direct', 'a'), # Direct (point) selection
(0x400000, 'Rotate', 'r'), # Rotate selection
(0x303000, 'Oval', 'l'), # Draw ellipse
# 4th row ----------
(0x101010, 'Eyedrop', 'i'), # Cycle eyedropper/measure modes
(0x400000, 'Scale', 's'), # Scale selection
(0x303000, 'Text', 't'), # Type tool
# Encoder button ---
(0x000000, '', [Keycode.CONTROL, Keycode.ALT, 'S']) # Save for web
]
}

View file

@ -0,0 +1,28 @@
# MACROPAD Hotkeys example: Adobe Photoshop for Windows
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
app = { # REQUIRED dict, must be named 'app'
'name' : 'Photoshop', # Application name
'macros' : [ # List of button macros...
# COLOR LABEL KEY SEQUENCE
# 1st row ----------
(0x004000, 'Undo', [Keycode.CONTROL, 'z']),
(0x004000, 'Redo', [Keycode.CONTROL, 'Z']),
(0x000040, 'Brush', 'B'), # Cycle brush modes
# 2nd row ----------
(0x101010, 'B&W', 'd'), # Default colors
(0x101010, 'Marquee', 'M'), # Cycle rect/ellipse marquee (select)
(0x000040, 'Eraser', 'E'), # Cycle eraser modes
# 3rd row ----------
(0x101010, 'Swap', 'x'), # Swap foreground/background colors
(0x101010, 'Move', 'v'), # Move layer
(0x000040, 'Fill', 'G'), # Cycle fill/gradient modes
# 4th row ----------
(0x101010, 'Eyedrop', 'I'), # Cycle eyedropper/measure modes
(0x101010, 'Wand', 'W'), # Cycle "magic wand" (selection) modes
(0x000040, 'Heal', 'J'), # Cycle "healing" modes
# Encoder button ---
(0x000000, '', [Keycode.CONTROL, Keycode.ALT, 'S']) # Save for web
]
}