Skip to content

Instantly share code, notes, and snippets.

@emleddin
Last active March 28, 2024 23:55
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emleddin/d25eb8493e16a7e262d156e7c8f53e77 to your computer and use it in GitHub Desktop.
Save emleddin/d25eb8493e16a7e262d156e7c8f53e77 to your computer and use it in GitHub Desktop.
Instructions for using the 8BitDo Zero 2 with ANKI on Linux and MacOS

Using the 8BitDo Zero 2 Remote with ANKI

The 8BitDo Zero 2 remote is ~$20 and can be used to gamify your studying.

See controller image below

The controller comes with preset keybindings that aren’t the most helpful. So, through the use of a key remapping software, you’ll update how your device interprets the keys!

If you don’t want to download a remapper, you should be able to use an Anki add-on to change the keyboard shortcuts to match the existing buttons on the device. Certain add-ons allow you to define add-on specific bindings (such as those for AMBOSS).

If you’re a video person, there are a few tutorials on YouTube. My desktop is Linux, though, which didn’t have an existing tutorial.

Linux

This works on Ubuntu, but the program has support for other flavors of Linux.

  1. Install input-remapper

    • Dependencies:
    libpython3-dev libdbus-1-dev python3-evdev python3-pydbus libgtksourceview-4-dev python3-pydantic
    
  2. Turn on your remote by holding Start + R (to enter keyboard mode)

  3. Hold select for 3 seconds to enter pairing mode

  4. Ensure bluetooth is on for your computer, and connect to the controller

  5. Open input-remapper

    • Enter your password for input monitoring
  6. Select your device in the dropdown at the top

  7. Remap your keys as you wish!

    • Use new entry in the middle, then select Change key, press the key on the remote, and it’ll come up with the current mapping. Then, change it to what you want it to be!
    • See input-remapper image below
8BitDo Zero 2 Initial Keybindings Suggested Remapped Keys Anki Function for Suggested Remap
Up arrow c d Decks
Down arrow d a Add
Left arrow e s Edit card
Right arrow f KEY_SPACE Show answer
A g 4 “Easy”
X h 1 “Again”
Y i 2 “Hard”
B j 3 “Good”
L (back) k Shift_L+F Open next AMBOSS pop-up
R (back) m Shift_L+Escape Close AMBOSS pop-up
  1. Notes
    • Keep the keys in Keyboard mode, not gamepad mode
    • Hit apply if you’ve been messing with them. Sometimes you’ll have to use Stop injection first to update the mappings.
    • These are just the suggested mappings based off current Anki keyboard shortcuts!
    • You can reset the AMBOSS key mapping in the AMBOSS add-in, if you’re using it.
  2. Turning off Bluetooth will turn off the remote automatically! You can also hold the start button to turn the device off.

MacOS

  1. Install karabiner-elements
    • Allow it to access input monitoring through the security and privacy menu
  2. Turn on your remote by holding Start + R (to enter keyboard mode)
  3. Hold select for 3 seconds to enter pairing mode
  4. Ensure bluetooth is on for your computer, and connect to the controller
    • Device should be something like 8BitDo Zero 2 gamepad. DeviceShock will not work for this, so if that’s what comes up in the Bluetooth discover menu, turn off the device and try again.
  5. Open karabiner-elements
  6. Under Simple Modifications, highlight the 8BitDo device, and then use the letters from the initial keybindings. - See karabiner-elements image below
    • Letters under Letter keys
    • Shifts under Modifier keys
    • Numbers under Number keys
    • Spacebar under Controls and symbols
8BitDo Zero 2 Initial Keybindings Suggested Remapped Keys Anki Function for Suggested Remap
Up arrow c d Decks
Down arrow d a Add
Left arrow e s Edit card
Right arrow f spacebar Show answer
A g 4 “Easy”
X h 1 “Again”
Y i 2 “Hard”
B j 3 “Good”
L (back) k , Open next AMBOSS pop-up
R (back) m . Close AMBOSS pop-up
  1. Notes
    • Certain add-ons let you modify the shortcuts (like AMBOSS). The AMBOSS add-on-specific bindings were changed, since karabiner-elements does not play well with multi-key mappings.
    • See AMBOSS settings image below
@gregorylearns
Copy link

Great guide! I use AntiMicroX on windows and Linux

https://github.com/AntiMicroX/antimicrox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment