It is unlikely that computer science is taught at Hogwarts, but if it were, Raspberry Pi computers would play an important role in it. Enthusiast Mo’s project That’s-so-Mo allows magicians who are tired of magic at the push of a button to use a more natural medium – the magic wand. Hogwarts Legacy uses a joystick from the Kano Harry Potter Coding Kit and a Raspberry Pi Zero W-based gesture controller to create magic.
Using a stick adds real authenticity to the game. As for manipulators, the name Kano is familiar to many from the original keyboard for Raspberry Pi and other interesting computer projects. The Kano Harry Potter Coding Kit stick is meant for learning programming, but Mo’s project uses it in an interesting way for gamers.
The data is processed by a Python module from GammaGames with support for wands and gesture capture via a Bluetooth connection. On the Raspberry Pi, gestures are converted to keystrokes, which are then sent to a PC running Hogwarts Legacy.
The Harry Potter fan community has carefully selected the movements required to cast each spell. Moe added these gestures to the program and now any Hogwarts scholar can correctly perform Lumos, Wingardium Levios, or Avada Kedavra spells if they are willing to spend time in Azkaban.
Hogwarts Legacy Review. Has magic left this world?
Source: Tom’s Hardware