Skip to content

Commit 15e6894

Browse files
committed
fix reversed prev/next
1 parent ecd93e5 commit 15e6894

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Macropad_Hotkeys/macros/minecraft-hotbar.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# MACROPAD Hotkeys example: Minecraft hotbar (inventory)
22

3+
# Note: Must enable "full keyboad gameplay" for Prev/Next buttons to work.
4+
# This is found under "settings", then "keyboard and mouse".
5+
36
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
47

58
app = { # REQUIRED dict, must be named 'app'
@@ -19,9 +22,9 @@
1922
(0x202000, '2', ['2']),
2023
(0x202000, '3', ['3']),
2124
# 4th row ----------
22-
(0x202000, 'Prev', [Keycode.PAGE_DOWN]),
25+
(0x002020, 'Prev', [Keycode.PAGE_UP]),
2326
(0x000000, '', []),
24-
(0x202000, 'Next', [Keycode.PAGE_UP]),
27+
(0x002020, 'Next', [Keycode.PAGE_DOWN]),
2528
# Encoder button ---
2629
(0x000000, '', [])
2730
]

0 commit comments

Comments
 (0)